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.0009495/0.0009495, allocations: 84.34 kB / 22.21 MB, free: 2.285 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.001047/0.001047, allocations: 166.8 kB / 25.61 MB, free: 8.582 MB / 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 0.985/0.985, allocations: 177 MB / 205.9 MB, free: 4.461 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 1.182e-06/1.182e-06, allocations: 0 / 274.1 MB, free: 4.285 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.405e-05/1.523e-05, allocations: 5.047 kB / 274.1 MB, free: 4.281 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.003502/0.003517, allocations: 3.985 MB / 278.1 MB, free: 292 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001619/0.005137, allocations: 1.045 MB / 279.2 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002096/0.005346, allocations: 7.938 kB / 279.2 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001922/0.005538, allocations: 95.06 kB / 279.3 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002897/0.005828, allocations: 202.3 kB / 279.5 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005364/0.006364, allocations: 231.5 kB / 279.7 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006094/0.006974, allocations: 0.8481 MB / 280.5 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001903/0.007164, allocations: 121.4 kB / 280.6 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004451/0.007609, allocations: 475 kB / 281.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002755/0.007885, allocations: 287.2 kB / 281.4 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.311e-05/0.007958, allocations: 76 kB / 281.5 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.959e-05/0.008057, allocations: 87.98 kB / 281.6 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.406e-05/0.008141, allocations: 151.5 kB / 281.7 MB, free: 12.68 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001603/0.008302, allocations: 239.4 kB / 281.9 MB, free: 12.45 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004187/0.00872, allocations: 0.5295 MB / 282.5 MB, free: 11.92 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.444e-06/0.008723, allocations: 0 / 282.5 MB, free: 11.92 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.008723, allocations: 0 / 282.5 MB, free: 11.92 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.008729, allocations: 0 / 282.5 MB, free: 11.92 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.001259/0.009988, allocations: 1.008 MB / 283.5 MB, free: 10.87 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.288e-05/0.01002, allocations: 8.031 kB / 283.5 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001667/0.01019, allocations: 100.5 kB / 283.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003308/0.01052, allocations: 358.5 kB / 283.9 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.838e-05/0.01055, allocations: 29.38 kB / 284 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.267e-05/0.0106, allocations: 40.38 kB / 284 MB, free: 10.32 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000549/0.01115, allocations: 449.3 kB / 284.4 MB, free: 9.836 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.01116, allocations: 4.172 kB / 284.4 MB, free: 9.832 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.157e-05/0.01119, allocations: 12.38 kB / 284.5 MB, free: 9.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.0112, allocations: 11.94 kB / 284.5 MB, free: 9.809 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002375/0.01144, allocations: 158.8 kB / 284.6 MB, free: 9.652 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001725/0.01316, allocations: 1.899 MB / 286.5 MB, free: 7.668 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009216/0.01408, allocations: 372.2 kB / 286.9 MB, free: 7.293 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001855/0.01427, allocations: 143.6 kB / 287 MB, free: 7.152 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.768e-05/0.0143, allocations: 8.328 kB / 287 MB, free: 7.145 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002595/0.01456, allocations: 235.8 kB / 287.3 MB, free: 6.887 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.523e-06/0.01456, allocations: 4 kB / 287.3 MB, free: 6.883 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.003634/0.01819, allocations: 1.143 MB / 288.4 MB, free: 5.727 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/0.01823, allocations: 85.11 kB / 288.5 MB, free: 5.625 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002278/0.01846, allocations: 402.5 kB / 288.9 MB, free: 5.215 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.306e-05/0.01849, allocations: 33.7 kB / 288.9 MB, free: 5.176 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001271/0.01862, allocations: 283.5 kB / 289.2 MB, free: 4.895 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.221e-05/0.0187, allocations: 138.8 kB / 289.3 MB, free: 4.758 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001608/0.01886, allocations: 79.67 kB / 289.4 MB, free: 4.668 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001455/0.01901, allocations: 0.5273 MB / 289.9 MB, free: 4.129 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001413/0.01915, allocations: 98.52 kB / 290 MB, free: 4.027 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.0193, allocations: 162.5 kB / 290.2 MB, free: 3.848 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002468/0.01955, allocations: 195.3 kB / 290.4 MB, free: 3.641 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.01955, allocations: 0 / 290.4 MB, free: 3.641 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008579/0.02041, allocations: 474.9 kB / 290.8 MB, free: 3.156 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.293e-05/0.02044, allocations: 37.69 kB / 290.9 MB, free: 3.113 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.02045, allocations: 0 / 290.9 MB, free: 3.113 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004478/0.0209, allocations: 207.5 kB / 291.1 MB, free: 2.906 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002068/0.0211, allocations: 83.88 kB / 291.2 MB, free: 2.824 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002963/0.02407, allocations: 2.755 MB / 293.9 MB, free: 15.97 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003113/0.02438, allocations: 67.73 kB / 294 MB, free: 15.9 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.319e-05/0.02441, allocations: 8 kB / 294 MB, free: 15.89 MB / 282.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.0001603/0.02457, allocations: 180.5 kB / 294.2 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.02468, allocations: 63.7 kB / 294.2 MB, free: 15.64 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.178e-05/0.02476, allocations: 52.42 kB / 294.3 MB, free: 15.59 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.02477, allocations: 15.97 kB / 294.3 MB, free: 15.58 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.02477, allocations: 0 / 294.3 MB, free: 15.58 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.02478, allocations: 3.984 kB / 294.3 MB, free: 15.57 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004008/0.02518, allocations: 325.3 kB / 294.6 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.02518, allocations: 4 kB / 294.6 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002463/0.02543, allocations: 63.88 kB / 294.7 MB, free: 15.16 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004949/0.02592, allocations: 210.2 kB / 294.9 MB, free: 14.96 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.356e-05/0.02595, allocations: 11.98 kB / 294.9 MB, free: 14.95 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003357/0.02931, allocations: 2.746 MB / 297.6 MB, free: 12.08 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.02931, allocations: 4 kB / 297.7 MB, free: 12.07 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001828/0.03114, allocations: 0.594 MB / 298.2 MB, free: 11.45 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001727/0.03131, allocations: 103.5 kB / 298.3 MB, free: 11.35 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.007e-05/0.03137, allocations: 11.94 kB / 298.4 MB, free: 11.34 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002638/0.03164, allocations: 43.95 kB / 298.4 MB, free: 11.3 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.03175, allocations: 55.91 kB / 298.5 MB, free: 11.24 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.127e-05/0.03178, allocations: 15.98 kB / 298.5 MB, free: 11.23 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001805/0.03196, allocations: 259 kB / 298.7 MB, free: 10.98 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.03196, allocations: 4 kB / 298.7 MB, free: 10.98 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000506/0.03247, allocations: 175.8 kB / 298.9 MB, free: 10.8 MB / 282.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.0001325/0.0326, allocations: 107.2 kB / 299 MB, free: 10.69 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008688/0.03347, allocations: 0.5835 MB / 299.6 MB, free: 10.07 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.03347, allocations: 0 / 299.6 MB, free: 10.07 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006002/0.03407, allocations: 425.1 kB / 300 MB, free: 9.633 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003797/0.03445, allocations: 89.22 kB / 300.1 MB, free: 9.547 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002016/0.03647, allocations: 1.017 MB / 301.1 MB, free: 8.504 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.546e-05/0.03656, allocations: 117.8 kB / 301.2 MB, free: 8.371 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001692/0.03673, allocations: 43.3 kB / 301.3 MB, free: 8.328 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002485/0.03698, allocations: 166.1 kB / 301.4 MB, free: 8.164 MB / 282.7 MB Notification: Performance of SimCode: time 6.51e-07/0.03698, allocations: 0 / 301.4 MB, free: 8.164 MB / 282.7 MB Notification: Performance of Templates: time 0.01834/0.05532, allocations: 13.8 MB / 315.2 MB, free: 10.48 MB / 298.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.5778972106054425]