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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001508/0.001508, allocations: 113.2 kB / 17.73 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001576/0.001576, allocations: 188.2 kB / 18.66 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.625/1.625, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 55.92 kB / 328.5 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1803/0.1818, allocations: 46.61 MB / 375.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.007471/0.1894, allocations: 3.883 MB / 379 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.3065/0.496, allocations: 1.025 MB / 380.1 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007937/0.4968, allocations: 9.5 kB / 380.1 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004539/0.4974, allocations: 84.53 kB / 380.2 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005602/0.4979, allocations: 162.4 kB / 380.3 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008964/0.4989, allocations: 207.4 kB / 380.5 MB, free: 10.3 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001212/0.5001, allocations: 0.762 MB / 381.3 MB, free: 10.17 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004573/0.5006, allocations: 177.2 kB / 381.4 MB, free: 10.14 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005901/0.5012, allocations: 294.4 kB / 381.7 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005733/0.5017, allocations: 334 kB / 382.1 MB, free: 9.988 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002567/0.502, allocations: 81.41 kB / 382.1 MB, free: 9.984 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002524/0.5023, allocations: 75.97 kB / 382.2 MB, free: 9.984 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002021/0.5025, allocations: 154.2 kB / 382.4 MB, free: 9.879 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005811/0.5031, allocations: 311.4 kB / 382.7 MB, free: 9.684 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001587/0.5047, allocations: 0.803 MB / 383.5 MB, free: 9.383 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.173e-06/0.5047, allocations: 1.094 kB / 383.5 MB, free: 9.383 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.5047, allocations: 0 / 383.5 MB, free: 9.383 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.433e-05/0.5047, allocations: 0 / 383.5 MB, free: 9.383 MB / 318.1 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.00334/0.5081, allocations: 0.9766 MB / 384.5 MB, free: 8.73 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.663e-05/0.5082, allocations: 13.73 kB / 384.5 MB, free: 8.727 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002047/0.5084, allocations: 56.75 kB / 384.5 MB, free: 8.699 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009432/0.5093, allocations: 408.1 kB / 384.9 MB, free: 8.363 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.42e-05/0.5094, allocations: 29.33 kB / 384.9 MB, free: 8.352 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001409/0.5095, allocations: 37.41 kB / 385 MB, free: 8.34 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001944/0.5115, allocations: 0.5622 MB / 385.5 MB, free: 8.094 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.737e-05/0.5115, allocations: 3.938 kB / 385.5 MB, free: 8.09 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.687e-05/0.5116, allocations: 15.59 kB / 385.6 MB, free: 8.078 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.22e-05/0.5116, allocations: 8.781 kB / 385.6 MB, free: 8.078 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002083/0.5137, allocations: 0.5746 MB / 386.1 MB, free: 7.902 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004102/0.5178, allocations: 2.001 MB / 388.1 MB, free: 6.609 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003783/0.5216, allocations: 0.7911 MB / 388.9 MB, free: 6.367 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001084/0.5227, allocations: 366.7 kB / 389.3 MB, free: 6.25 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.201e-05/0.5228, allocations: 7.625 kB / 389.3 MB, free: 6.246 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001259/0.5241, allocations: 404.8 kB / 389.7 MB, free: 6.078 MB / 318.1 MB Notification: Performance of pre-optimization done (n=39): time 3.647e-06/0.5241, allocations: 0 / 389.7 MB, free: 6.078 MB / 318.1 MB Notification: Performance of matching and sorting (n=39): time 0.01076/0.5349, allocations: 1.79 MB / 391.5 MB, free: 5.605 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.92e-05/0.535, allocations: 87.31 kB / 391.6 MB, free: 5.508 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009109/0.5359, allocations: 384.9 kB / 392 MB, free: 5.312 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.907e-05/0.536, allocations: 38.33 kB / 392 MB, free: 5.273 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002501/0.5363, allocations: 221.4 kB / 392.2 MB, free: 5.094 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001877/0.5365, allocations: 131.3 kB / 392.3 MB, free: 4.992 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002759/0.5367, allocations: 71.03 kB / 392.4 MB, free: 4.949 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.5369, allocations: 348.5 kB / 392.7 MB, free: 4.621 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001357/0.5383, allocations: 272 kB / 393 MB, free: 4.539 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001395/0.5397, allocations: 312.4 kB / 393.3 MB, free: 4.418 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002611/0.5423, allocations: 0.5369 MB / 393.9 MB, free: 4.207 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-06/0.5423, allocations: 0.8125 kB / 393.9 MB, free: 4.207 MB / 318.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.00699/0.5493, allocations: 1.055 MB / 394.9 MB, free: 3.871 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.192e-05/0.5494, allocations: 38.41 kB / 394.9 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.327e-05/0.5495, allocations: 0 / 394.9 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001968/0.5514, allocations: 407.5 kB / 395.3 MB, free: 3.719 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006608/0.5521, allocations: 78 kB / 395.4 MB, free: 3.715 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01243/0.5646, allocations: 3.683 MB / 399.1 MB, free: 1.215 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001063/0.5656, allocations: 83.31 kB / 399.2 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001139/0.5658, allocations: 17.7 kB / 399.2 MB, free: 1.164 MB / 318.1 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 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.T_start,simpleTriac.idealDiode1.off,simpleTriac.idealDiode.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0004645/0.5663, allocations: 165.6 kB / 399.4 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002178/0.5665, allocations: 44.56 kB / 399.4 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001947/0.5667, allocations: 51.38 kB / 399.5 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.31e-05/0.5667, allocations: 7.234 kB / 399.5 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.5667, allocations: 1.062 kB / 399.5 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.285e-06/0.5668, allocations: 7.938 kB / 399.5 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001211/0.568, allocations: 0.5889 MB / 400.1 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.368e-06/0.568, allocations: 1.531 kB / 400.1 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006526/0.5687, allocations: 70.91 kB / 400.1 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001638/0.5703, allocations: 395.9 kB / 400.5 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.173e-05/0.5704, allocations: 11.64 kB / 400.5 MB, free: 232 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01281/0.5832, allocations: 3.668 MB / 404.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.5833, allocations: 3.938 kB / 404.2 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006913/0.5902, allocations: 1.256 MB / 405.5 MB, free: 12.76 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005027/0.5907, allocations: 164.3 kB / 405.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000195/0.5909, allocations: 15.12 kB / 405.6 MB, free: 12.58 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008721/0.5918, allocations: 60.11 kB / 405.7 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002591/0.5921, allocations: 59.52 kB / 405.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.057e-05/0.5922, allocations: 7.656 kB / 405.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006428/0.5928, allocations: 275.8 kB / 406 MB, free: 12.34 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5928, allocations: 0 / 406 MB, free: 12.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001243/0.5941, allocations: 175 kB / 406.2 MB, free: 12.31 MB / 334.1 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002781/0.5944, allocations: 110.1 kB / 406.3 MB, free: 12.22 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003849/0.5982, allocations: 0.8797 MB / 407.2 MB, free: 11.69 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.219e-06/0.5983, allocations: 0 / 407.2 MB, free: 11.69 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002009/0.6003, allocations: 0.5391 MB / 407.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006952/0.601, allocations: 78.41 kB / 407.8 MB, free: 11.31 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003605/0.6046, allocations: 1.151 MB / 409 MB, free: 10.58 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004402/0.6051, allocations: 0.8259 MB / 409.8 MB, free: 9.82 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002412/0.6053, allocations: 42.86 kB / 409.8 MB, free: 9.797 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.6054, allocations: 34.95 kB / 409.9 MB, free: 9.781 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.6055, allocations: 0 / 409.9 MB, free: 9.781 MB / 334.1 MB Notification: Performance of Templates: time 0.02417/0.6296, allocations: 13.26 MB / 423.1 MB, free: 13.9 MB / 350.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches