Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.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.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001419/0.001419, allocations: 171.5 kB / 14.1 MB, free: 1.219 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.547/1.547, allocations: 205.2 MB / 219.8 MB, free: 14.28 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.001112/0.001112, allocations: 82.67 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.081e-05/3.084e-05, allocations: 4 kB / 322.5 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1149, allocations: 47.57 MB / 370 MB, free: 1.723 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2972/0.4122, allocations: 80.33 MB / 450.4 MB, free: 13.03 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002174/0.4125, allocations: 70.27 kB / 450.4 MB, free: 12.99 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02487/0.4373, allocations: 8.565 MB / 459 MB, free: 5.641 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.4374, allocations: 4 kB / 459 MB, free: 5.637 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.588e-05/0.4374, allocations: 16 kB / 459 MB, free: 5.621 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001754/0.4392, allocations: 0.8231 MB / 459.8 MB, free: 4.773 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.4392, allocations: 8.031 kB / 459.8 MB, free: 4.766 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001208/0.4393, allocations: 55.34 kB / 459.9 MB, free: 4.711 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004877/0.4398, allocations: 385 kB / 460.3 MB, free: 4.359 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.962e-05/0.4399, allocations: 40.23 kB / 460.3 MB, free: 4.336 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.379e-05/0.44, allocations: 35.38 kB / 460.3 MB, free: 4.312 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007795/0.4407, allocations: 462.4 kB / 460.8 MB, free: 3.984 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.4408, allocations: 0 / 460.8 MB, free: 3.984 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.937e-05/0.4408, allocations: 12 kB / 460.8 MB, free: 3.973 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.4408, allocations: 8 kB / 460.8 MB, free: 3.965 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007047/0.4415, allocations: 394.9 kB / 461.2 MB, free: 3.574 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003444/0.445, allocations: 2.038 MB / 463.2 MB, free: 1.441 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003176/0.4482, allocations: 0.7294 MB / 464 MB, free: 0.6992 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000452/0.4487, allocations: 265.1 kB / 464.2 MB, free: 448 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.553e-05/0.4487, allocations: 12 kB / 464.2 MB, free: 436 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005361/0.4493, allocations: 287.9 kB / 464.5 MB, free: 132 kB / 330.7 MB Notification: Performance of pre-optimization done (n=39): time 2.194e-06/0.4493, allocations: 0 / 464.5 MB, free: 132 kB / 330.7 MB Notification: Performance of matching and sorting (n=39): time 0.001392/0.4507, allocations: 0.5492 MB / 465.1 MB, free: 15.57 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.03e-05/0.4508, allocations: 85.06 kB / 465.2 MB, free: 15.47 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004907/0.4513, allocations: 342.8 kB / 465.5 MB, free: 15.12 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.7e-05/0.4513, allocations: 33.7 kB / 465.5 MB, free: 15.09 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002198/0.4516, allocations: 220.6 kB / 465.7 MB, free: 14.86 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001515/0.4517, allocations: 130.1 kB / 465.9 MB, free: 14.73 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.203e-05/0.4518, allocations: 8 kB / 465.9 MB, free: 14.73 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001931/0.452, allocations: 358.8 kB / 466.2 MB, free: 14.37 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003495/0.4523, allocations: 164.8 kB / 466.4 MB, free: 14.2 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000355/0.4527, allocations: 206 kB / 466.6 MB, free: 13.99 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003455/0.453, allocations: 187.5 kB / 466.8 MB, free: 13.8 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/0.4531, allocations: 0 / 466.8 MB, free: 13.8 MB / 346.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001171/0.4542, allocations: 0.5934 MB / 467.4 MB, free: 13.2 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.933e-05/0.4543, allocations: 41.69 kB / 467.4 MB, free: 13.15 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.4543, allocations: 0 / 467.4 MB, free: 13.15 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009559/0.4553, allocations: 336.5 kB / 467.7 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004821/0.4558, allocations: 95.92 kB / 467.8 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007024/0.4628, allocations: 3.082 MB / 470.9 MB, free: 9.512 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007958/0.4636, allocations: 111.6 kB / 471 MB, free: 9.402 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.91e-05/0.4637, allocations: 19.98 kB / 471 MB, free: 9.383 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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 {4 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001654/0.4639, allocations: 113.9 kB / 471.1 MB, free: 9.266 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.93e-05/0.464, allocations: 43.53 kB / 471.2 MB, free: 9.223 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001532/0.4641, allocations: 52.5 kB / 471.2 MB, free: 9.172 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.4641, allocations: 4.094 kB / 471.2 MB, free: 9.168 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.4641, allocations: 11.94 kB / 471.3 MB, free: 9.156 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.696e-06/0.4642, allocations: 11.92 kB / 471.3 MB, free: 9.145 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007854/0.4649, allocations: 0.5833 MB / 471.8 MB, free: 8.508 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.465, allocations: 0 / 471.8 MB, free: 8.508 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004429/0.4654, allocations: 87.94 kB / 471.9 MB, free: 8.422 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008149/0.4662, allocations: 324.6 kB / 472.3 MB, free: 8.102 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.441e-05/0.4663, allocations: 15.98 kB / 472.3 MB, free: 8.086 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006733/0.473, allocations: 3.074 MB / 475.3 MB, free: 4.875 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.4731, allocations: 3.938 kB / 475.3 MB, free: 4.871 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001728/0.4748, allocations: 0.8334 MB / 476.2 MB, free: 4.016 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002498/0.4751, allocations: 172.5 kB / 476.3 MB, free: 3.828 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.284e-05/0.4751, allocations: 15.94 kB / 476.4 MB, free: 3.812 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000579/0.4757, allocations: 87.92 kB / 476.4 MB, free: 3.727 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001498/0.4759, allocations: 47.92 kB / 476.5 MB, free: 3.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.991e-05/0.4759, allocations: 12 kB / 476.5 MB, free: 3.668 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003997/0.4763, allocations: 269.2 kB / 476.8 MB, free: 3.41 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.976e-06/0.4764, allocations: 0 / 476.8 MB, free: 3.41 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006931/0.4771, allocations: 175.6 kB / 476.9 MB, free: 3.238 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (L.i,simpleTriac.thyristor.vControl,simpleTriac.thyristor1.vControl) * Number of discrete variables: 5 ($whenCondition1,simpleTriac.idealDiode.off,simpleTriac.idealDiode1.off,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002175/0.4773, allocations: 126.2 kB / 477.1 MB, free: 3.105 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00145/0.4787, allocations: 0.6579 MB / 477.7 MB, free: 2.422 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.4788, allocations: 0 / 477.7 MB, free: 2.422 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009128/0.4797, allocations: 438.2 kB / 478.1 MB, free: 1.98 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005054/0.4802, allocations: 75.22 kB / 478.2 MB, free: 1.906 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002395/0.4826, allocations: 0.8653 MB / 479.1 MB, free: 1.023 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004067/0.483, allocations: 0.8436 MB / 479.9 MB, free: 156 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002329/0.4833, allocations: 39.28 kB / 480 MB, free: 116 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.436e-05/0.4834, allocations: 23.44 kB / 480 MB, free: 92 kB / 346.7 MB Notification: Performance of SimCode: time 6.41e-07/0.4834, allocations: 3.938 kB / 480 MB, free: 88 kB / 346.7 MB Notification: Performance of Templates: time 0.01656/0.4999, allocations: 10.76 MB / 490.8 MB, free: 5.316 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches