Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.IdealTriacCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|idealTriac.capacitor.v|idealTriac.idealThyristor.off|idealTriac.idealThyristor1.off",fileNamePrefix="Modelica_3.2.3_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_Modelica.Electrical.Analog.Examples.IdealTriacCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 110.4 kB / 17.73 MB, free: 5.336 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.001137/0.001137, allocations: 187.1 kB / 18.66 MB, free: 4.41 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.607/1.607, 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.001224/0.001224, allocations: 51.92 kB / 328.5 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1405/0.1417, allocations: 46.61 MB / 375.1 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.004956/0.1468, allocations: 2.874 MB / 378 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001747/0.1486, allocations: 0.7757 MB / 378.8 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001848/0.1488, allocations: 7.938 kB / 378.8 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002273/0.149, allocations: 51.5 kB / 378.9 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002276/0.1493, allocations: 95.12 kB / 378.9 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004301/0.1497, allocations: 95.81 kB / 379 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005578/0.1503, allocations: 418.1 kB / 379.4 MB, free: 244 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003309/0.1506, allocations: 127.2 kB / 379.6 MB, free: 112 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2932/0.4439, allocations: 149 kB / 379.7 MB, free: 9.859 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004511/0.4444, allocations: 162.3 kB / 379.9 MB, free: 9.859 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.91e-05/0.4445, allocations: 37.12 kB / 379.9 MB, free: 9.859 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.101e-05/0.4446, allocations: 37.12 kB / 380 MB, free: 9.859 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.755e-05/0.4447, allocations: 81.16 kB / 380 MB, free: 9.852 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002217/0.4449, allocations: 173.2 kB / 380.2 MB, free: 9.805 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006314/0.4455, allocations: 434.5 kB / 380.6 MB, free: 9.762 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.4456, allocations: 1.156 kB / 380.6 MB, free: 9.762 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.4456, allocations: 0 / 380.6 MB, free: 9.762 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.4456, allocations: 0 / 380.6 MB, free: 9.762 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001252/0.4468, allocations: 0.6198 MB / 381.2 MB, free: 9.309 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.659e-05/0.4469, allocations: 12.09 kB / 381.3 MB, free: 9.309 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.015e-05/0.447, allocations: 35.14 kB / 381.3 MB, free: 9.293 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004049/0.4474, allocations: 291.9 kB / 381.6 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.406e-05/0.4474, allocations: 20.27 kB / 381.6 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.432e-05/0.4475, allocations: 25.56 kB / 381.6 MB, free: 9.062 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005531/0.4481, allocations: 288.5 kB / 381.9 MB, free: 9.004 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.4481, allocations: 3.938 kB / 381.9 MB, free: 9 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.131e-05/0.4481, allocations: 11.12 kB / 381.9 MB, free: 9 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.244e-05/0.4482, allocations: 7.438 kB / 381.9 MB, free: 9 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004297/0.4486, allocations: 202.7 kB / 382.1 MB, free: 9 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001925/0.4505, allocations: 1.145 MB / 383.3 MB, free: 8.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005794/0.4511, allocations: 220.1 kB / 383.5 MB, free: 8.402 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003299/0.4515, allocations: 139.4 kB / 383.6 MB, free: 8.391 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.227e-05/0.4515, allocations: 2.562 kB / 383.6 MB, free: 8.391 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002892/0.4518, allocations: 174.8 kB / 383.8 MB, free: 8.309 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.873e-06/0.4518, allocations: 0.6562 kB / 383.8 MB, free: 8.309 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001509/0.4533, allocations: 0.5113 MB / 384.3 MB, free: 8.148 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.888e-05/0.4534, allocations: 136.8 kB / 384.4 MB, free: 7.992 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000278/0.4537, allocations: 249.1 kB / 384.7 MB, free: 7.883 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.512e-05/0.4537, allocations: 30.98 kB / 384.7 MB, free: 7.852 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.4538, allocations: 163.8 kB / 384.9 MB, free: 7.738 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.903e-05/0.4539, allocations: 71.55 kB / 384.9 MB, free: 7.695 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.349e-05/0.454, allocations: 52.14 kB / 385 MB, free: 7.676 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.096e-05/0.4541, allocations: 331.7 kB / 385.3 MB, free: 7.363 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001596/0.4543, allocations: 71.98 kB / 385.4 MB, free: 7.355 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001968/0.4545, allocations: 126.1 kB / 385.5 MB, free: 7.273 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002953/0.4548, allocations: 171.9 kB / 385.7 MB, free: 7.176 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.4548, allocations: 0.75 kB / 385.7 MB, free: 7.176 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004938/0.4553, allocations: 293.1 kB / 386 MB, free: 7.031 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.4553, allocations: 7.031 kB / 386 MB, free: 7.031 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.014e-05/0.4553, allocations: 3.469 kB / 386 MB, free: 7.031 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003722/0.4557, allocations: 98.42 kB / 386.1 MB, free: 6.996 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001371/0.4559, allocations: 26.12 kB / 386.1 MB, free: 6.996 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002008/0.4579, allocations: 2.137 MB / 388.2 MB, free: 5.148 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002384/0.4581, allocations: 28.72 kB / 388.3 MB, free: 5.137 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.915e-05/0.4582, allocations: 6.156 kB / 388.3 MB, free: 5.137 MB / 318.1 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,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * 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 {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001584/0.4583, allocations: 157.3 kB / 388.4 MB, free: 4.992 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.449e-05/0.4584, allocations: 38.02 kB / 388.5 MB, free: 4.969 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.964e-05/0.4585, allocations: 29.67 kB / 388.5 MB, free: 4.945 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.4585, allocations: 2.219 kB / 388.5 MB, free: 4.945 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.4585, allocations: 1.781 kB / 388.5 MB, free: 4.945 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.585e-06/0.4585, allocations: 2.359 kB / 388.5 MB, free: 4.945 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009607/0.4594, allocations: 0.771 MB / 389.3 MB, free: 4.383 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.4595, allocations: 0 / 389.3 MB, free: 4.383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001433/0.4596, allocations: 26.58 kB / 389.3 MB, free: 4.379 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002648/0.4599, allocations: 92.39 kB / 389.4 MB, free: 4.344 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.259e-05/0.4599, allocations: 7.578 kB / 389.4 MB, free: 4.34 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001907/0.4618, allocations: 2.133 MB / 391.5 MB, free: 2.504 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.616e-06/0.4619, allocations: 5.969 kB / 391.5 MB, free: 2.5 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006873/0.4625, allocations: 454.3 kB / 392 MB, free: 2.223 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001208/0.4627, allocations: 127.6 kB / 392.1 MB, free: 2.098 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.961e-05/0.4627, allocations: 7.078 kB / 392.1 MB, free: 2.094 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002104/0.4629, allocations: 22.45 kB / 392.1 MB, free: 2.086 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/0.4631, allocations: 33.72 kB / 392.2 MB, free: 2.078 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.761e-05/0.4631, allocations: 8.312 kB / 392.2 MB, free: 2.074 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001828/0.4633, allocations: 175.5 kB / 392.3 MB, free: 1.965 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.4633, allocations: 0 / 392.3 MB, free: 1.965 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005272/0.4638, allocations: 88.88 kB / 392.4 MB, free: 1.949 MB / 318.1 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.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.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 (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 {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001541/0.464, allocations: 107.3 kB / 392.5 MB, free: 1.855 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008714/0.4649, allocations: 359.8 kB / 392.9 MB, free: 1.648 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.912e-06/0.4649, allocations: 1.562 kB / 392.9 MB, free: 1.648 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005147/0.4654, allocations: 263.9 kB / 393.1 MB, free: 1.477 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005878/0.466, allocations: 72.02 kB / 393.2 MB, free: 1.449 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001728/0.4677, allocations: 0.5887 MB / 393.8 MB, free: 1.086 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004599/0.4682, allocations: 0.763 MB / 394.6 MB, free: 396 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001483/0.4684, allocations: 21.2 kB / 394.6 MB, free: 396 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.393e-05/0.4685, allocations: 19.14 kB / 394.6 MB, free: 388 kB / 318.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4685, allocations: 0 / 394.6 MB, free: 388 kB / 318.1 MB Notification: Performance of Templates: time 0.01649/0.485, allocations: 4.925 MB / 399.5 MB, free: 15.78 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches