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.001035/0.001035, allocations: 114 kB / 17.28 MB, free: 6.219 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.001042/0.001042, allocations: 189.3 kB / 18.2 MB, free: 5.297 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.666/1.666, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.001263/0.001263, allocations: 51.92 kB / 280.2 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1694/0.1707, allocations: 46.63 MB / 326.8 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.006485/0.1772, allocations: 3.932 MB / 330.7 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002234/0.1795, allocations: 1.01 MB / 331.7 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002491/0.1798, allocations: 8 kB / 331.7 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003101/0.1801, allocations: 67.39 kB / 331.8 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003324/0.1805, allocations: 146.8 kB / 331.9 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005527/0.181, allocations: 175.8 kB / 332.1 MB, free: 15.43 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000935/0.182, allocations: 0.759 MB / 332.9 MB, free: 14.67 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004196/0.1824, allocations: 165.2 kB / 333 MB, free: 14.51 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00047/0.1829, allocations: 287 kB / 333.3 MB, free: 14.23 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004573/0.1834, allocations: 342.7 kB / 333.6 MB, free: 13.89 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000124/0.1835, allocations: 80 kB / 333.7 MB, free: 13.81 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001305/0.1836, allocations: 76 kB / 333.8 MB, free: 13.74 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001665/0.1838, allocations: 147.5 kB / 333.9 MB, free: 13.59 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004005/0.1842, allocations: 318.5 kB / 334.3 MB, free: 13.28 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009887/0.1852, allocations: 0.7905 MB / 335 MB, free: 12.49 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.356e-06/0.1852, allocations: 0 / 335 MB, free: 12.49 MB / 286.1 MB Notification: Performance of FrontEnd: time 4.198e-06/0.1852, allocations: 4 kB / 335.1 MB, free: 12.48 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.173e-05/0.1853, allocations: 0 / 335.1 MB, free: 12.48 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.003013/0.1883, allocations: 0.9797 MB / 336 MB, free: 11.45 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.134e-05/0.1884, allocations: 12.03 kB / 336 MB, free: 11.44 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001615/0.1885, allocations: 56.28 kB / 336.1 MB, free: 11.38 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006279/0.1892, allocations: 398 kB / 336.5 MB, free: 10.95 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.327e-05/0.1892, allocations: 29.38 kB / 336.5 MB, free: 10.93 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.625e-05/0.1893, allocations: 44.12 kB / 336.6 MB, free: 10.88 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001343/0.1907, allocations: 0.5591 MB / 337.1 MB, free: 10.3 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.904e-05/0.1907, allocations: 3.984 kB / 337.1 MB, free: 10.3 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.181e-05/0.1908, allocations: 16 kB / 337.1 MB, free: 10.28 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.1908, allocations: 8 kB / 337.1 MB, free: 10.27 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001609/0.1924, allocations: 0.5738 MB / 337.7 MB, free: 9.703 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003756/0.1962, allocations: 2.012 MB / 339.7 MB, free: 7.594 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003782/0.2, allocations: 0.7991 MB / 340.5 MB, free: 6.785 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009621/0.2009, allocations: 365.3 kB / 340.9 MB, free: 6.426 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.048e-05/0.201, allocations: 7.984 kB / 340.9 MB, free: 6.418 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001273/0.2023, allocations: 399.4 kB / 341.3 MB, free: 6.012 MB / 286.1 MB Notification: Performance of pre-optimization done (n=39): time 2.745e-06/0.2023, allocations: 0 / 341.3 MB, free: 6.012 MB / 286.1 MB Notification: Performance of matching and sorting (n=39): time 0.009492/0.2118, allocations: 1.802 MB / 343.1 MB, free: 4.18 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/0.2119, allocations: 81.11 kB / 343.2 MB, free: 4.082 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000533/0.2125, allocations: 389.6 kB / 343.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 6.048e-05/0.2125, allocations: 37.64 kB / 343.6 MB, free: 3.648 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002311/0.2128, allocations: 224.6 kB / 343.8 MB, free: 3.422 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001381/0.2129, allocations: 126.1 kB / 343.9 MB, free: 3.297 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001758/0.2131, allocations: 74.05 kB / 344 MB, free: 3.215 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002034/0.2133, allocations: 354.8 kB / 344.3 MB, free: 2.859 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008197/0.2142, allocations: 264.6 kB / 344.6 MB, free: 2.602 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008326/0.215, allocations: 313.9 kB / 344.9 MB, free: 2.285 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001556/0.2166, allocations: 0.5407 MB / 345.4 MB, free: 1.73 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.2166, allocations: 0 / 345.4 MB, free: 1.73 MB / 286.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.004658/0.2212, allocations: 1.06 MB / 346.5 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.816e-05/0.2213, allocations: 37.7 kB / 346.5 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.2213, allocations: 0 / 346.5 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001406/0.2227, allocations: 396.5 kB / 346.9 MB, free: 228 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004369/0.2232, allocations: 75.88 kB / 347 MB, free: 152 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01013/0.2333, allocations: 3.678 MB / 350.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007383/0.2341, allocations: 79.66 kB / 350.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.532e-05/0.2342, allocations: 16 kB / 350.8 MB, free: 12.23 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.0004821/0.2347, allocations: 179.2 kB / 351 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001457/0.2348, allocations: 47.38 kB / 351 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000166/0.235, allocations: 56.36 kB / 351.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.235, allocations: 4 kB / 351.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.235, allocations: 0 / 351.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.235, allocations: 0 / 351.1 MB, free: 11.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001125/0.2362, allocations: 0.5912 MB / 351.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.591e-05/0.2362, allocations: 3.938 kB / 351.7 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004761/0.2367, allocations: 67.92 kB / 351.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001346/0.2381, allocations: 401.1 kB / 352.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.815e-05/0.2381, allocations: 11.98 kB / 352.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009269/0.2474, allocations: 3.659 MB / 355.8 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.2475, allocations: 0 / 355.8 MB, free: 7.035 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004957/0.2524, allocations: 1.262 MB / 357 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003818/0.2528, allocations: 176.5 kB / 357.2 MB, free: 5.559 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001327/0.253, allocations: 7.938 kB / 357.2 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006039/0.2536, allocations: 59.92 kB / 357.3 MB, free: 5.492 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001986/0.2538, allocations: 51.94 kB / 357.3 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.59e-05/0.2539, allocations: 15.94 kB / 357.3 MB, free: 5.426 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004543/0.2543, allocations: 275.1 kB / 357.6 MB, free: 5.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2543, allocations: 0 / 357.6 MB, free: 5.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008957/0.2553, allocations: 171.8 kB / 357.8 MB, free: 4.992 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.0003083/0.2556, allocations: 107.4 kB / 357.9 MB, free: 4.875 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.003232/0.2588, allocations: 0.8916 MB / 358.8 MB, free: 3.957 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.2588, allocations: 0 / 358.8 MB, free: 3.957 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001699/0.2605, allocations: 0.5373 MB / 359.3 MB, free: 3.406 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006902/0.2613, allocations: 85.39 kB / 359.4 MB, free: 3.324 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004418/0.2657, allocations: 1.332 MB / 360.7 MB, free: 1.969 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007864/0.2665, allocations: 0.8278 MB / 361.6 MB, free: 1.117 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002992/0.2668, allocations: 43.27 kB / 361.6 MB, free: 1.074 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001141/0.2669, allocations: 31.44 kB / 361.6 MB, free: 1.043 MB / 302.1 MB Notification: Performance of SimCode: time 1.302e-06/0.2669, allocations: 0 / 361.6 MB, free: 1.043 MB / 302.1 MB Notification: Performance of Templates: time 0.02762/0.2946, allocations: 12.89 MB / 374.5 MB, free: 4.145 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