Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009217/0.0009217, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009663/0.0009663, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.011/1.011, allocations: 177 MB / 204.8 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 0 / 272.9 MB, free: 1.461 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.542e-05/2.743e-05, allocations: 5.266 kB / 272.9 MB, free: 1.457 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.00509/0.005118, allocations: 4.054 MB / 277 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002042/0.007159, allocations: 1.052 MB / 278 MB, free: 12.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002282/0.007388, allocations: 11.94 kB / 278 MB, free: 12.3 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002258/0.007613, allocations: 87.12 kB / 278.1 MB, free: 12.22 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003603/0.007974, allocations: 198.3 kB / 278.3 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005271/0.008501, allocations: 235.5 kB / 278.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000713/0.009214, allocations: 0.8481 MB / 279.4 MB, free: 10.94 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002064/0.00942, allocations: 113.5 kB / 279.5 MB, free: 10.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005418/0.009962, allocations: 479 kB / 280 MB, free: 10.35 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002892/0.01025, allocations: 283.3 kB / 280.2 MB, free: 10.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.769e-05/0.01033, allocations: 76 kB / 280.3 MB, free: 10 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001086/0.01044, allocations: 91.94 kB / 280.4 MB, free: 9.91 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.006e-05/0.01053, allocations: 155.5 kB / 280.6 MB, free: 9.758 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001737/0.0107, allocations: 235.4 kB / 280.8 MB, free: 9.527 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000489/0.01119, allocations: 0.5334 MB / 281.3 MB, free: 8.992 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.01119, allocations: 0 / 281.3 MB, free: 8.992 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.01119, allocations: 0 / 281.3 MB, free: 8.992 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.835e-06/0.0112, allocations: 0 / 281.3 MB, free: 8.992 MB / 266.7 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.001434/0.01264, allocations: 1.008 MB / 282.3 MB, free: 7.941 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.01268, allocations: 11.98 kB / 282.3 MB, free: 7.93 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002105/0.01289, allocations: 96.55 kB / 282.4 MB, free: 7.836 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004791/0.01337, allocations: 362.5 kB / 282.8 MB, free: 7.453 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.313e-05/0.01342, allocations: 29.38 kB / 282.8 MB, free: 7.426 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.992e-05/0.01349, allocations: 40.31 kB / 282.9 MB, free: 7.387 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006763/0.01416, allocations: 473.4 kB / 283.3 MB, free: 6.883 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.2e-05/0.01417, allocations: 192 / 283.3 MB, free: 6.883 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.488e-05/0.01421, allocations: 20.36 kB / 283.3 MB, free: 6.863 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.258e-05/0.01422, allocations: 11.94 kB / 283.4 MB, free: 6.852 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003459/0.01457, allocations: 201.8 kB / 283.6 MB, free: 6.656 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002145/0.01671, allocations: 1.957 MB / 285.5 MB, free: 4.613 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/0.01771, allocations: 404.9 kB / 285.9 MB, free: 4.207 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002467/0.01796, allocations: 152.3 kB / 286.1 MB, free: 4.055 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.619e-05/0.018, allocations: 12.31 kB / 286.1 MB, free: 4.043 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003443/0.01834, allocations: 255.8 kB / 286.3 MB, free: 3.766 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.904e-06/0.01834, allocations: 0 / 286.3 MB, free: 3.766 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.003727/0.02207, allocations: 1.194 MB / 287.5 MB, free: 2.559 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.391e-05/0.02211, allocations: 85.11 kB / 287.6 MB, free: 2.457 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002902/0.0224, allocations: 410.7 kB / 288 MB, free: 2.035 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.661e-05/0.02244, allocations: 33.7 kB / 288 MB, free: 1.996 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.02258, allocations: 283.5 kB / 288.3 MB, free: 1.715 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.714e-05/0.02267, allocations: 146.8 kB / 288.5 MB, free: 1.57 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001096/0.02278, allocations: 79.7 kB / 288.5 MB, free: 1.48 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.02292, allocations: 0.5235 MB / 289.1 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001792/0.02309, allocations: 110.5 kB / 289.2 MB, free: 0.832 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001989/0.02329, allocations: 182.5 kB / 289.3 MB, free: 0.6328 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003372/0.02363, allocations: 227.4 kB / 289.6 MB, free: 404 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.02363, allocations: 3.938 kB / 289.6 MB, free: 400 kB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.1108/0.1345, allocations: 0.4947 MB / 290.1 MB, free: 25.86 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.134e-05/0.1345, allocations: 34.38 kB / 290.1 MB, free: 25.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.196e-06/0.1345, allocations: 2.656 kB / 290.1 MB, free: 25.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006153/0.1351, allocations: 219.9 kB / 290.3 MB, free: 25.81 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003056/0.1355, allocations: 74.59 kB / 290.4 MB, free: 25.81 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003431/0.1389, allocations: 2.822 MB / 293.2 MB, free: 23.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003266/0.1392, allocations: 61.41 kB / 293.3 MB, free: 23.88 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.344e-05/0.1392, allocations: 14.56 kB / 293.3 MB, free: 23.88 MB / 266.7 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.0001372/0.1394, allocations: 179.7 kB / 293.5 MB, free: 23.71 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.479e-05/0.1395, allocations: 66.27 kB / 293.5 MB, free: 23.71 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.458e-05/0.1395, allocations: 57.36 kB / 293.6 MB, free: 23.7 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.1395, allocations: 7.703 kB / 293.6 MB, free: 23.7 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.534e-06/0.1395, allocations: 0 / 293.6 MB, free: 23.7 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.1395, allocations: 3.5 kB / 293.6 MB, free: 23.7 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003845/0.1399, allocations: 377.2 kB / 294 MB, free: 23.56 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1399, allocations: 1.359 kB / 294 MB, free: 23.56 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002377/0.1402, allocations: 65.62 kB / 294 MB, free: 23.56 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004936/0.1407, allocations: 229.9 kB / 294.2 MB, free: 23.55 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.388e-05/0.1407, allocations: 7.734 kB / 294.3 MB, free: 23.55 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003099/0.1438, allocations: 2.817 MB / 297.1 MB, free: 21.57 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.1438, allocations: 4.547 kB / 297.1 MB, free: 21.57 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001785/0.1456, allocations: 0.6485 MB / 297.7 MB, free: 21.44 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001596/0.1457, allocations: 98.5 kB / 297.8 MB, free: 21.42 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.423e-05/0.1458, allocations: 12.98 kB / 297.8 MB, free: 21.42 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002542/0.146, allocations: 44.66 kB / 297.9 MB, free: 21.42 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001232/0.1462, allocations: 54.28 kB / 297.9 MB, free: 21.42 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.133e-05/0.1462, allocations: 20.95 kB / 297.9 MB, free: 21.42 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002231/0.1464, allocations: 280.1 kB / 298.2 MB, free: 21.29 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1464, allocations: 5.062 kB / 298.2 MB, free: 21.29 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005114/0.1469, allocations: 175.8 kB / 298.4 MB, free: 21.27 MB / 266.7 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.0001049/0.147, allocations: 105.6 kB / 298.5 MB, free: 21.18 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009617/0.148, allocations: 0.6281 MB / 299.1 MB, free: 20.87 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.148, allocations: 0 / 299.1 MB, free: 20.87 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005805/0.1486, allocations: 436.9 kB / 299.6 MB, free: 20.63 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003638/0.1489, allocations: 99.92 kB / 299.7 MB, free: 20.6 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001927/0.1509, allocations: 1.003 MB / 300.7 MB, free: 20.04 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.469e-05/0.151, allocations: 123.8 kB / 300.8 MB, free: 19.97 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001555/0.1511, allocations: 40.33 kB / 300.8 MB, free: 19.96 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.975e-05/0.1512, allocations: 35.16 kB / 300.9 MB, free: 19.95 MB / 266.7 MB Notification: Performance of SimCode: time 8.92e-07/0.1512, allocations: 1.25 kB / 300.9 MB, free: 19.95 MB / 266.7 MB Notification: Performance of Templates: time 0.01698/0.1682, allocations: 13.39 MB / 314.2 MB, free: 11.29 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SimpleTriacCircuit/SimpleTriacCircuit.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.510919803753495]