Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001814/0.001814, allocations: 109.6 kB / 20.43 MB, free: 1.301 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001428/0.001428, allocations: 192.4 kB / 23.72 MB, free: 4.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.494/1.494, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") translateModel(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit,tolerance=1e-12,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|L.i|simpleTriac.thyristor.vControl|simpleTriac.thyristor1.vControl",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002202/0.002202, allocations: 47.92 kB / 371 MB, free: 9.328 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3233/0.3255, allocations: 52.17 MB / 423.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.006219/0.3317, allocations: 4.095 MB / 427.2 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0022/0.3339, allocations: 1.021 MB / 428.2 MB, free: 9.539 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002709/0.3342, allocations: 11.94 kB / 428.3 MB, free: 9.527 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000273/0.3344, allocations: 83.14 kB / 428.3 MB, free: 9.445 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003649/0.3348, allocations: 182.5 kB / 428.5 MB, free: 9.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005988/0.3354, allocations: 223.6 kB / 428.7 MB, free: 9.047 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000998/0.3364, allocations: 0.8095 MB / 429.5 MB, free: 8.234 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002871/0.3367, allocations: 119 kB / 429.7 MB, free: 8.113 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004748/0.3372, allocations: 315 kB / 430 MB, free: 7.805 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004746/0.3376, allocations: 354.7 kB / 430.3 MB, free: 7.457 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001348/0.3378, allocations: 84 kB / 430.4 MB, free: 7.375 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001308/0.3379, allocations: 84 kB / 430.5 MB, free: 7.293 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001822/0.3381, allocations: 167.4 kB / 430.6 MB, free: 7.129 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000362/0.3384, allocations: 322.5 kB / 431 MB, free: 6.812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009083/0.3394, allocations: 0.8521 MB / 431.8 MB, free: 5.961 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.706e-06/0.3394, allocations: 0 / 431.8 MB, free: 5.961 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.3394, allocations: 0 / 431.8 MB, free: 5.961 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.027e-06/0.3394, allocations: 0 / 431.8 MB, free: 5.961 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.002813/0.3422, allocations: 0.9701 MB / 432.8 MB, free: 4.953 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.3422, allocations: 8.031 kB / 432.8 MB, free: 4.945 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000168/0.3424, allocations: 68.55 kB / 432.8 MB, free: 4.879 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007041/0.3431, allocations: 356.5 kB / 433.2 MB, free: 4.504 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.222e-05/0.3431, allocations: 29.38 kB / 433.2 MB, free: 4.477 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.938e-05/0.3432, allocations: 36.38 kB / 433.3 MB, free: 4.441 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001627/0.3449, allocations: 0.5993 MB / 433.9 MB, free: 3.816 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.3449, allocations: 0 / 433.9 MB, free: 3.816 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.48e-05/0.3449, allocations: 16 kB / 433.9 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.3449, allocations: 11.94 kB / 433.9 MB, free: 3.789 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002017/0.347, allocations: 0.6284 MB / 434.5 MB, free: 3.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004039/0.351, allocations: 2.111 MB / 436.6 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00394/0.3549, allocations: 0.8073 MB / 437.4 MB, free: 140 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00112/0.3561, allocations: 361.3 kB / 437.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.008e-05/0.3561, allocations: 4.328 kB / 437.8 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001215/0.3573, allocations: 434.5 kB / 438.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.294e-06/0.3573, allocations: 4 kB / 438.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.01445/0.3718, allocations: 2.195 MB / 440.4 MB, free: 13.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.502e-05/0.3718, allocations: 81.11 kB / 440.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005813/0.3724, allocations: 410 kB / 440.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.862e-05/0.3725, allocations: 37.7 kB / 440.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000201/0.3727, allocations: 232.9 kB / 441.2 MB, free: 12.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001637/0.3729, allocations: 142.8 kB / 441.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001859/0.3731, allocations: 74 kB / 441.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.3732, allocations: 358.7 kB / 441.7 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009964/0.3742, allocations: 288.6 kB / 442 MB, free: 11.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001016/0.3753, allocations: 341.8 kB / 442.3 MB, free: 11.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001973/0.3772, allocations: 0.572 MB / 442.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.3772, allocations: 0 / 442.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.003848/0.3811, allocations: 0.9746 MB / 443.9 MB, free: 9.559 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.768e-05/0.3811, allocations: 37.69 kB / 443.9 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.3811, allocations: 0 / 443.9 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001348/0.3825, allocations: 392.5 kB / 444.3 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005169/0.383, allocations: 95.84 kB / 444.4 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008951/0.392, allocations: 3.56 MB / 448 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007844/0.3927, allocations: 91.88 kB / 448 MB, free: 5.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.912e-05/0.3928, allocations: 12 kB / 448.1 MB, free: 5.27 MB / 350.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 (trapezoidCurrent.signalSource.count,$PRE.trapezoidCurrent.signalSource.count,trapezoidCurrent.signalSource.T_start,$PRE.trapezoidCurrent.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.0003072/0.3931, allocations: 173.7 kB / 448.2 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/0.3932, allocations: 55.67 kB / 448.3 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001424/0.3934, allocations: 56.45 kB / 448.3 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.122e-06/0.3934, allocations: 4 kB / 448.3 MB, free: 4.977 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3934, allocations: 4 kB / 448.3 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.3934, allocations: 0 / 448.3 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008659/0.3943, allocations: 0.5901 MB / 448.9 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.3943, allocations: 3.984 kB / 448.9 MB, free: 4.336 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005123/0.3948, allocations: 91.73 kB / 449 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001209/0.396, allocations: 392.6 kB / 449.4 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.962e-05/0.396, allocations: 7.984 kB / 449.4 MB, free: 3.852 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008952/0.405, allocations: 3.562 MB / 453 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.405, allocations: 0 / 453 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006234/0.4112, allocations: 1.446 MB / 454.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000351/0.4116, allocations: 115.5 kB / 454.5 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001077/0.4117, allocations: 7.938 kB / 454.5 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006126/0.4123, allocations: 75.91 kB / 454.6 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001654/0.4125, allocations: 47.92 kB / 454.7 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.334e-05/0.4125, allocations: 11.98 kB / 454.7 MB, free: 14.45 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004238/0.4129, allocations: 291.2 kB / 455 MB, free: 14.17 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4129, allocations: 4 kB / 455 MB, free: 14.17 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007369/0.4137, allocations: 167.9 kB / 455.1 MB, free: 14 MB / 366.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,trapezoidCurrent.signalSource.T_start,trapezoidCurrent.signalSource.count) * Number of discrete states: 1 (trapezoidCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * 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.0001871/0.4139, allocations: 111.2 kB / 455.2 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002915/0.4168, allocations: 0.8995 MB / 456.1 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.4168, allocations: 0 / 456.1 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001635/0.4184, allocations: 0.5492 MB / 456.7 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005781/0.419, allocations: 92.11 kB / 456.8 MB, free: 12.3 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003363/0.4224, allocations: 1.215 MB / 458 MB, free: 11.06 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005371/0.4229, allocations: 0.8355 MB / 458.8 MB, free: 10.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002374/0.4231, allocations: 43.39 kB / 458.9 MB, free: 10.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001251/0.4233, allocations: 31.44 kB / 458.9 MB, free: 10.13 MB / 366.1 MB Notification: Performance of SimCode: time 7.32e-07/0.4233, allocations: 0 / 458.9 MB, free: 10.13 MB / 366.1 MB Notification: Performance of Templates: time 0.02597/0.4492, allocations: 14.25 MB / 473.2 MB, free: 11.96 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.0378934275358915]