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.001087/0.001087, allocations: 94.91 kB / 17.3 MB, free: 6.391 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.001176/0.001176, allocations: 171.9 kB / 18.2 MB, free: 5.551 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.892/1.892, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0005965/0.0005966, allocations: 16 kB / 281.4 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1488, allocations: 47.58 MB / 329 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.005312/0.1542, allocations: 3.531 MB / 332.5 MB, free: 204 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.004317/0.1586, allocations: 1.006 MB / 333.5 MB, free: 15.19 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001204/0.1599, allocations: 7.938 kB / 333.5 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007033/0.1607, allocations: 63.52 kB / 333.6 MB, free: 15.12 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001315/0.162, allocations: 142.8 kB / 333.7 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009708/0.163, allocations: 179.8 kB / 333.9 MB, free: 14.8 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001188/0.1642, allocations: 0.7081 MB / 334.6 MB, free: 14.09 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004421/0.1647, allocations: 149.8 kB / 334.7 MB, free: 13.95 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005095/0.1652, allocations: 239 kB / 335 MB, free: 13.71 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004802/0.1657, allocations: 290.7 kB / 335.3 MB, free: 13.43 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.607e-05/0.1658, allocations: 32 kB / 335.3 MB, free: 13.39 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.292e-05/0.1659, allocations: 36 kB / 335.3 MB, free: 13.36 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001204/0.166, allocations: 99.52 kB / 335.4 MB, free: 13.26 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003571/0.1664, allocations: 304.2 kB / 335.7 MB, free: 12.96 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008843/0.1673, allocations: 0.7278 MB / 336.4 MB, free: 12.23 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.868e-06/0.1673, allocations: 3.938 kB / 336.5 MB, free: 12.22 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.957e-06/0.1673, allocations: 0 / 336.5 MB, free: 12.22 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.1673, allocations: 0 / 336.5 MB, free: 12.22 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.002876/0.1702, allocations: 0.9527 MB / 337.4 MB, free: 11.21 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.559e-05/0.1703, allocations: 8.031 kB / 337.4 MB, free: 11.2 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001592/0.1704, allocations: 56.28 kB / 337.5 MB, free: 11.15 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000609/0.1711, allocations: 394.1 kB / 337.9 MB, free: 10.73 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.418e-05/0.1711, allocations: 29.38 kB / 337.9 MB, free: 10.7 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.32e-05/0.1712, allocations: 44.12 kB / 337.9 MB, free: 10.65 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001464/0.1727, allocations: 0.5981 MB / 338.5 MB, free: 10.04 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.681e-05/0.1727, allocations: 0 / 338.5 MB, free: 10.04 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.667e-05/0.1728, allocations: 12 kB / 338.5 MB, free: 10.02 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.499e-05/0.1728, allocations: 8 kB / 338.5 MB, free: 10.02 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001953/0.1748, allocations: 0.648 MB / 339.2 MB, free: 9.367 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00392/0.1787, allocations: 2.062 MB / 341.3 MB, free: 7.207 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003982/0.1827, allocations: 0.9322 MB / 342.2 MB, free: 6.266 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001061/0.1838, allocations: 397.3 kB / 342.6 MB, free: 5.875 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.656e-05/0.1839, allocations: 7.984 kB / 342.6 MB, free: 5.867 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001301/0.1852, allocations: 443.4 kB / 343 MB, free: 5.418 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 3.026e-06/0.1852, allocations: 0 / 343 MB, free: 5.418 MB / 286.1 MB Notification: Performance of matching and sorting (n=39): time 0.01049/0.1957, allocations: 2.049 MB / 345.1 MB, free: 3.34 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/0.1959, allocations: 81.11 kB / 345.1 MB, free: 3.242 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007607/0.1967, allocations: 389.7 kB / 345.5 MB, free: 2.848 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.482e-05/0.1968, allocations: 33.7 kB / 345.6 MB, free: 2.809 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002457/0.197, allocations: 224.5 kB / 345.8 MB, free: 2.582 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001872/0.1972, allocations: 126.2 kB / 345.9 MB, free: 2.457 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.664e-05/0.1973, allocations: 37.7 kB / 345.9 MB, free: 2.414 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002063/0.1975, allocations: 354.8 kB / 346.3 MB, free: 2.059 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009727/0.1985, allocations: 308.6 kB / 346.6 MB, free: 1.754 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001012/0.1996, allocations: 349.9 kB / 346.9 MB, free: 1.402 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001952/0.2015, allocations: 0.6227 MB / 347.5 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.167e-06/0.2015, allocations: 4 kB / 347.6 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.005464/0.207, allocations: 1.205 MB / 348.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.033e-05/0.2071, allocations: 33.7 kB / 348.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.221e-05/0.2072, allocations: 0 / 348.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001529/0.2087, allocations: 424.2 kB / 349.2 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005931/0.2093, allocations: 99.88 kB / 349.3 MB, free: 14.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009767/0.2191, allocations: 3.506 MB / 352.8 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008297/0.22, allocations: 99.62 kB / 352.9 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001357/0.2202, allocations: 15.98 kB / 352.9 MB, free: 11.24 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 (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.0003607/0.2205, allocations: 171.1 kB / 353.1 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001316/0.2207, allocations: 39.53 kB / 353.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001549/0.2208, allocations: 56.31 kB / 353.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.2209, allocations: 4 kB / 353.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/0.2209, allocations: 7.984 kB / 353.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.803e-06/0.2209, allocations: 0 / 353.2 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009081/0.2218, allocations: 0.5833 MB / 353.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.2218, allocations: 0 / 353.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000457/0.2223, allocations: 83.94 kB / 353.9 MB, free: 10.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001235/0.2235, allocations: 421.7 kB / 354.3 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.45e-05/0.2236, allocations: 23.92 kB / 354.3 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009403/0.233, allocations: 3.492 MB / 357.8 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.2331, allocations: 0 / 357.8 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005282/0.2384, allocations: 1.406 MB / 359.2 MB, free: 4.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004764/0.2389, allocations: 176.5 kB / 359.4 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001476/0.2391, allocations: 8 kB / 359.4 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006812/0.2398, allocations: 79.92 kB / 359.4 MB, free: 4.473 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002474/0.2401, allocations: 51.92 kB / 359.5 MB, free: 4.422 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.255e-05/0.2401, allocations: 8 kB / 359.5 MB, free: 4.414 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004273/0.2406, allocations: 279.2 kB / 359.8 MB, free: 4.145 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2406, allocations: 0 / 359.8 MB, free: 4.145 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008913/0.2415, allocations: 179.6 kB / 360 MB, free: 3.969 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 (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.0003116/0.2418, allocations: 107.2 kB / 360.1 MB, free: 3.852 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003315/0.2451, allocations: 0.9464 MB / 361 MB, free: 2.879 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/0.2452, allocations: 0 / 361 MB, free: 2.879 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001637/0.2468, allocations: 0.5724 MB / 361.6 MB, free: 2.293 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007253/0.2476, allocations: 73.45 kB / 361.6 MB, free: 2.223 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004054/0.2516, allocations: 1.434 MB / 363.1 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000749/0.2524, allocations: 0.8313 MB / 363.9 MB, free: 15.91 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003238/0.2528, allocations: 39.28 kB / 364 MB, free: 15.88 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001161/0.2529, allocations: 31.44 kB / 364 MB, free: 15.84 MB / 318.1 MB Notification: Performance of SimCode: time 2.956e-06/0.2529, allocations: 0 / 364 MB, free: 15.84 MB / 318.1 MB Notification: Performance of Templates: time 0.02833/0.2812, allocations: 12.16 MB / 376.1 MB, free: 3.672 MB / 318.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","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches