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.0009504/0.0009505, allocations: 95.47 kB / 16.94 MB, free: 6.441 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.0009021/0.0009022, allocations: 184.3 kB / 17.83 MB, free: 6.008 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.683/1.683, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004516/0.0004517, allocations: 12 kB / 280.7 MB, free: 3.758 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1284, allocations: 47.58 MB / 328.3 MB, free: 4.109 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004314/0.1328, allocations: 3.146 MB / 331.5 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002257/0.1351, allocations: 1.018 MB / 332.5 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002328/0.1354, allocations: 8 kB / 332.5 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001185/0.1355, allocations: 59.52 kB / 332.6 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003697/0.1359, allocations: 183.5 kB / 332.7 MB, free: 15.67 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000361/0.1363, allocations: 139.7 kB / 332.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005614/0.1368, allocations: 475 kB / 333.3 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002452/0.1371, allocations: 131.9 kB / 333.5 MB, free: 14.94 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002802/0.1374, allocations: 239.2 kB / 333.7 MB, free: 14.71 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003428/0.1377, allocations: 274.9 kB / 334 MB, free: 14.44 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.605e-05/0.1378, allocations: 32 kB / 334 MB, free: 14.41 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.939e-05/0.1379, allocations: 32 kB / 334 MB, free: 14.38 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001018/0.138, allocations: 103.6 kB / 334.1 MB, free: 14.27 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000109/0.1381, allocations: 117.5 kB / 334.2 MB, free: 14.15 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000492/0.1386, allocations: 0.5962 MB / 334.8 MB, free: 13.55 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.1386, allocations: 8 kB / 334.9 MB, free: 13.55 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.1386, allocations: 0 / 334.9 MB, free: 13.55 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.257e-06/0.1387, allocations: 0 / 334.9 MB, free: 13.55 MB / 286.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.002437/0.1411, allocations: 0.9408 MB / 335.8 MB, free: 12.55 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.739e-05/0.1412, allocations: 12.03 kB / 335.8 MB, free: 12.54 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001373/0.1413, allocations: 59.28 kB / 335.9 MB, free: 12.48 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005354/0.1418, allocations: 388.9 kB / 336.2 MB, free: 12.06 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.342e-05/0.1419, allocations: 29 kB / 336.3 MB, free: 12.03 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.591e-05/0.142, allocations: 36 kB / 336.3 MB, free: 11.99 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001386/0.1434, allocations: 0.5943 MB / 336.9 MB, free: 11.38 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/0.1434, allocations: 7.938 kB / 336.9 MB, free: 11.37 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.608e-05/0.1435, allocations: 12 kB / 336.9 MB, free: 11.36 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.479e-05/0.1435, allocations: 12 kB / 336.9 MB, free: 11.35 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001815/0.1453, allocations: 0.6402 MB / 337.6 MB, free: 10.71 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003916/0.1493, allocations: 2.055 MB / 339.6 MB, free: 8.555 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003686/0.153, allocations: 0.9288 MB / 340.6 MB, free: 7.617 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.888e-05/0.1531, allocations: 12.55 kB / 340.6 MB, free: 7.605 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001155/0.1542, allocations: 439.7 kB / 341 MB, free: 7.16 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 2.124e-06/0.1542, allocations: 0 / 341 MB, free: 7.16 MB / 286.1 MB Notification: Performance of matching and sorting (n=39): time 0.009465/0.1637, allocations: 2.034 MB / 343 MB, free: 5.098 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.423e-05/0.1638, allocations: 89 kB / 343.1 MB, free: 4.992 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005715/0.1644, allocations: 377.7 kB / 343.5 MB, free: 4.609 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.127e-05/0.1645, allocations: 41.7 kB / 343.5 MB, free: 4.562 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002325/0.1647, allocations: 220.6 kB / 343.7 MB, free: 4.34 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001472/0.1649, allocations: 126.1 kB / 343.9 MB, free: 4.215 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.39e-05/0.1649, allocations: 12 kB / 343.9 MB, free: 4.203 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.1651, allocations: 350.8 kB / 344.2 MB, free: 3.852 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00084/0.166, allocations: 304.6 kB / 344.5 MB, free: 3.551 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008435/0.1668, allocations: 350.1 kB / 344.9 MB, free: 3.199 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008383/0.1677, allocations: 315.5 kB / 345.2 MB, free: 2.887 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.579e-06/0.1677, allocations: 0 / 345.2 MB, free: 2.887 MB / 286.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004528/0.1722, allocations: 1.182 MB / 346.3 MB, free: 1.688 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.161e-05/0.1723, allocations: 29.7 kB / 346.4 MB, free: 1.652 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/0.1723, allocations: 7.938 kB / 346.4 MB, free: 1.645 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001293/0.1736, allocations: 423.8 kB / 346.8 MB, free: 1.23 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004672/0.1741, allocations: 95.86 kB / 346.9 MB, free: 1.137 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008187/0.1823, allocations: 3.635 MB / 350.5 MB, free: 13.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007519/0.1831, allocations: 95.62 kB / 350.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.755e-05/0.1831, allocations: 15.98 kB / 350.6 MB, free: 13.26 MB / 302.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 ($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 () * 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 (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.000318/0.1835, allocations: 169.9 kB / 350.8 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.332e-05/0.1836, allocations: 51.38 kB / 350.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001113/0.1837, allocations: 56.38 kB / 350.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.1837, allocations: 4 kB / 350.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.1837, allocations: 3.984 kB / 350.9 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.1837, allocations: 0 / 350.9 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007102/0.1844, allocations: 0.5873 MB / 351.5 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.1844, allocations: 3.953 kB / 351.5 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004484/0.1849, allocations: 87.88 kB / 351.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001148/0.1861, allocations: 428.5 kB / 352 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.021e-05/0.1861, allocations: 7.984 kB / 352 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008052/0.1942, allocations: 3.606 MB / 355.6 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/0.1942, allocations: 0 / 355.6 MB, free: 8.078 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004568/0.1988, allocations: 1.419 MB / 357 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003008/0.1991, allocations: 172.5 kB / 357.2 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.836e-05/0.1992, allocations: 4 kB / 357.2 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000534/0.1998, allocations: 87.92 kB / 357.3 MB, free: 6.359 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001776/0.2, allocations: 55.92 kB / 357.4 MB, free: 6.305 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.229e-05/0.2, allocations: 4 kB / 357.4 MB, free: 6.301 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003156/0.2003, allocations: 275.2 kB / 357.6 MB, free: 6.035 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.2003, allocations: 0 / 357.6 MB, free: 6.035 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000779/0.2011, allocations: 171.7 kB / 357.8 MB, free: 5.867 MB / 302.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 (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.0002689/0.2014, allocations: 115.4 kB / 357.9 MB, free: 5.742 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002658/0.2041, allocations: 0.9312 MB / 358.8 MB, free: 4.785 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.2041, allocations: 4.062 kB / 358.8 MB, free: 4.781 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001455/0.2055, allocations: 0.5762 MB / 359.4 MB, free: 4.191 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004795/0.206, allocations: 81.39 kB / 359.5 MB, free: 4.109 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00295/0.209, allocations: 1.374 MB / 360.9 MB, free: 2.719 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00045/0.2095, allocations: 0.8469 MB / 361.7 MB, free: 1.848 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002483/0.2097, allocations: 39.28 kB / 361.8 MB, free: 1.805 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.433e-05/0.2098, allocations: 31.42 kB / 361.8 MB, free: 1.773 MB / 302.1 MB Notification: Performance of SimCode: time 1.282e-06/0.2098, allocations: 3.938 kB / 361.8 MB, free: 1.77 MB / 302.1 MB Notification: Performance of Templates: time 0.01826/0.2281, allocations: 11.85 MB / 373.6 MB, free: 5.91 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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