Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002066/0.002066, allocations: 176.5 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.721/3.721, allocations: 205.4 MB / 223.6 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001171/0.001171, allocations: 99.12 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005168/0.0005169, allocations: 11.98 kB / 328.1 MB, free: 15.96 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5776/0.5781, allocations: 47.58 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2104/0.7886, allocations: 78.38 MB / 454.1 MB, free: 2.246 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003287/0.789, allocations: 71.95 kB / 454.2 MB, free: 2.176 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02816/0.8172, allocations: 4.962 MB / 459.1 MB, free: 13.19 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.549e-06/0.8173, allocations: 0 / 459.1 MB, free: 13.19 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.578e-05/0.8174, allocations: 8 kB / 459.1 MB, free: 13.18 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.002008/0.8194, allocations: 0.5709 MB / 459.7 MB, free: 12.55 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.422e-05/0.8195, allocations: 8.031 kB / 459.7 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002195/0.8197, allocations: 40.56 kB / 459.8 MB, free: 12.51 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006797/0.8204, allocations: 287.5 kB / 460 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.456e-05/0.8205, allocations: 20.94 kB / 460.1 MB, free: 12.17 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001124/0.8206, allocations: 24.38 kB / 460.1 MB, free: 12.14 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005062/0.8257, allocations: 281.1 kB / 460.4 MB, free: 11.86 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.295e-05/0.8259, allocations: 8.062 kB / 460.4 MB, free: 11.85 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001667/0.826, allocations: 11.94 kB / 460.4 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.422e-05/0.8261, allocations: 12 kB / 460.4 MB, free: 11.82 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001177/0.8273, allocations: 206.2 kB / 460.6 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003982/0.8313, allocations: 1.153 MB / 461.7 MB, free: 10.39 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009839/0.8323, allocations: 222.8 kB / 462 MB, free: 10.16 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005631/0.8329, allocations: 148.7 kB / 462.1 MB, free: 10.02 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.395e-05/0.833, allocations: 4 kB / 462.1 MB, free: 10.01 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006771/0.8337, allocations: 170.9 kB / 462.3 MB, free: 9.824 MB / 346.7 MB Notification: Performance of pre-optimization done (n=22): time 7.054e-06/0.8337, allocations: 0 / 462.3 MB, free: 9.824 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.003057/0.8368, allocations: 0.5457 MB / 462.8 MB, free: 9.25 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001695/0.837, allocations: 132.5 kB / 463 MB, free: 9.09 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007002/0.8377, allocations: 248.9 kB / 463.2 MB, free: 8.836 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.787e-05/0.8378, allocations: 29.7 kB / 463.2 MB, free: 8.801 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002399/0.8381, allocations: 164.5 kB / 463.4 MB, free: 8.637 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001362/0.8382, allocations: 79.02 kB / 463.5 MB, free: 8.559 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.425e-05/0.8383, allocations: 0 / 463.5 MB, free: 8.559 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002708/0.8385, allocations: 342.8 kB / 463.8 MB, free: 8.215 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002929/0.8389, allocations: 72.47 kB / 463.9 MB, free: 8.145 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003385/0.8392, allocations: 125.1 kB / 464 MB, free: 8.004 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005382/0.8398, allocations: 173.7 kB / 464.2 MB, free: 7.824 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/0.8398, allocations: 0 / 464.2 MB, free: 7.824 MB / 346.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009523/0.8407, allocations: 294.1 kB / 464.4 MB, free: 7.527 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.748e-05/0.8408, allocations: 8 kB / 464.5 MB, free: 7.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.604e-05/0.8408, allocations: 7.922 kB / 464.5 MB, free: 7.512 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006074/0.8414, allocations: 88.75 kB / 464.5 MB, free: 7.422 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002731/0.8417, allocations: 35.92 kB / 464.6 MB, free: 7.387 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004209/0.846, allocations: 1.975 MB / 466.6 MB, free: 5.277 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000529/0.8465, allocations: 39.78 kB / 466.6 MB, free: 5.238 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.444e-05/0.8466, allocations: 20.05 kB / 466.6 MB, free: 5.219 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.idealTriac.idealThyristor.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 10} Notification: Performance of prepare postOptimizeDAE: time 0.0003842/0.847, allocations: 145.8 kB / 466.8 MB, free: 5.066 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001176/0.8472, allocations: 23.72 kB / 466.8 MB, free: 5.043 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001262/0.8473, allocations: 30.17 kB / 466.8 MB, free: 5.012 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.287e-06/0.8473, allocations: 4 kB / 466.8 MB, free: 5.008 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.8473, allocations: 0 / 466.8 MB, free: 5.008 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.31e-05/0.8474, allocations: 3.938 kB / 466.8 MB, free: 5.004 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002126/0.8495, allocations: 0.8116 MB / 467.6 MB, free: 4.129 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.25e-06/0.8495, allocations: 3.938 kB / 467.6 MB, free: 4.125 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002278/0.8498, allocations: 20 kB / 467.7 MB, free: 4.105 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004639/0.8503, allocations: 84.8 kB / 467.7 MB, free: 4.02 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.501e-05/0.8503, allocations: 15.97 kB / 467.8 MB, free: 4.004 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004082/0.8544, allocations: 1.938 MB / 469.7 MB, free: 1.934 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.8544, allocations: 0 / 469.7 MB, free: 1.934 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00126/0.8557, allocations: 472.2 kB / 470.2 MB, free: 1.453 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002657/0.856, allocations: 120.8 kB / 470.3 MB, free: 1.316 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.845e-05/0.8561, allocations: 4 kB / 470.3 MB, free: 1.312 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003597/0.8565, allocations: 28.05 kB / 470.3 MB, free: 1.285 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001779/0.8567, allocations: 35.88 kB / 470.3 MB, free: 1.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.829e-05/0.8567, allocations: 8 kB / 470.3 MB, free: 1.242 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003342/0.8571, allocations: 172.5 kB / 470.5 MB, free: 1.074 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.1e-07/0.8571, allocations: 0 / 470.5 MB, free: 1.074 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005214/0.8623, allocations: 95.78 kB / 470.6 MB, free: 0.9805 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.y,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of discrete states: 2 (idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003618/0.8628, allocations: 107.2 kB / 470.7 MB, free: 0.8672 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001468/0.8643, allocations: 366.3 kB / 471.1 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.498e-06/0.8643, allocations: 4 kB / 471.1 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007355/0.865, allocations: 262.7 kB / 471.3 MB, free: 228 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009387/0.866, allocations: 52.11 kB / 471.4 MB, free: 180 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002648/0.8687, allocations: 0.753 MB / 472.1 MB, free: 15.38 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006289/0.8693, allocations: 0.7638 MB / 472.9 MB, free: 14.59 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001083/0.8695, allocations: 19.44 kB / 472.9 MB, free: 14.57 MB / 362.7 MB Notification: Performance of SimCode: time 1.022e-06/0.8695, allocations: 0 / 472.9 MB, free: 14.57 MB / 362.7 MB Notification: Performance of Templates: time 0.01838/0.8879, allocations: 4.603 MB / 477.5 MB, free: 9.98 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches