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.0007726/0.0007726, allocations: 88.28 kB / 21.44 MB, free: 3.133 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.003704/0.003704, allocations: 158.2 kB / 24.7 MB, free: 9.426 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.8259/0.8259, allocations: 177 MB / 204.9 MB, free: 5.738 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.745e-06/2.745e-06, allocations: 4 kB / 325.8 MB, free: 15.37 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.764e-05/2.039e-05, allocations: 7.203 kB / 325.8 MB, free: 15.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.002948/0.002968, allocations: 3.718 MB / 329.5 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001059/0.004027, allocations: 1.028 MB / 330.5 MB, free: 10.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001425/0.00417, allocations: 4 kB / 330.5 MB, free: 10.58 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001674/0.004337, allocations: 99 kB / 330.6 MB, free: 10.48 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001942/0.004531, allocations: 198.3 kB / 330.8 MB, free: 10.29 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000344/0.004875, allocations: 235.5 kB / 331.1 MB, free: 10.05 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007267/0.005602, allocations: 0.8519 MB / 331.9 MB, free: 9.199 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001757/0.005778, allocations: 113.5 kB / 332 MB, free: 9.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003774/0.006155, allocations: 475 kB / 332.5 MB, free: 8.625 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002335/0.006389, allocations: 275.3 kB / 332.8 MB, free: 8.355 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.425e-05/0.006453, allocations: 88 kB / 332.8 MB, free: 8.27 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.609e-05/0.006539, allocations: 87.98 kB / 332.9 MB, free: 8.184 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.734e-05/0.006616, allocations: 167.4 kB / 333.1 MB, free: 8.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001474/0.006764, allocations: 239.4 kB / 333.3 MB, free: 7.785 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005645/0.007328, allocations: 0.9037 MB / 334.2 MB, free: 6.879 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.245e-06/0.00733, allocations: 0 / 334.2 MB, free: 6.879 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.007331, allocations: 0 / 334.2 MB, free: 6.879 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.007337, allocations: 3.938 kB / 334.2 MB, free: 6.875 MB / 298.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.001402/0.008739, allocations: 0.9779 MB / 335.2 MB, free: 5.859 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.334e-05/0.008772, allocations: 15.98 kB / 335.2 MB, free: 5.844 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001422/0.008915, allocations: 72.55 kB / 335.3 MB, free: 5.773 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003835/0.009298, allocations: 355.7 kB / 335.7 MB, free: 5.398 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.336e-05/0.009321, allocations: 29.38 kB / 335.7 MB, free: 5.371 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.135e-05/0.009373, allocations: 36.38 kB / 335.7 MB, free: 5.336 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007848/0.01016, allocations: 0.6324 MB / 336.3 MB, free: 4.672 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.01017, allocations: 4.188 kB / 336.4 MB, free: 4.668 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.143e-05/0.0102, allocations: 16.38 kB / 336.4 MB, free: 4.652 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.01021, allocations: 15.92 kB / 336.4 MB, free: 4.637 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009848/0.0112, allocations: 0.644 MB / 337 MB, free: 3.992 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002251/0.01345, allocations: 1.901 MB / 338.9 MB, free: 2.012 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001802/0.01525, allocations: 0.8198 MB / 339.7 MB, free: 1.18 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005464/0.0158, allocations: 369.3 kB / 340.1 MB, free: 0.8164 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.963e-05/0.01583, allocations: 8.312 kB / 340.1 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006185/0.01644, allocations: 464.3 kB / 340.6 MB, free: 340 kB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 1.924e-06/0.01645, allocations: 0 / 340.6 MB, free: 340 kB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.006143/0.02259, allocations: 2.305 MB / 342.9 MB, free: 14.02 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.324e-05/0.02263, allocations: 81.11 kB / 343 MB, free: 13.92 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002724/0.0229, allocations: 393.7 kB / 343.3 MB, free: 13.52 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.486e-05/0.02294, allocations: 37.7 kB / 343.4 MB, free: 13.48 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.02306, allocations: 244.8 kB / 343.6 MB, free: 13.23 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.101e-05/0.02314, allocations: 138.8 kB / 343.8 MB, free: 13.1 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.02324, allocations: 74.06 kB / 343.8 MB, free: 13.02 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.207e-05/0.02333, allocations: 350.8 kB / 344.2 MB, free: 12.66 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004946/0.02383, allocations: 326.4 kB / 344.5 MB, free: 12.34 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005207/0.02435, allocations: 393.8 kB / 344.9 MB, free: 11.93 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009229/0.02527, allocations: 0.6068 MB / 345.5 MB, free: 11.31 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.02527, allocations: 3.938 kB / 345.5 MB, free: 11.31 MB / 314.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001994/0.02727, allocations: 1.019 MB / 346.5 MB, free: 10.27 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.77e-05/0.0273, allocations: 33.7 kB / 346.5 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.0273, allocations: 0 / 346.5 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007151/0.02802, allocations: 439.3 kB / 347 MB, free: 9.801 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002342/0.02825, allocations: 95.86 kB / 347.1 MB, free: 9.707 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00443/0.03268, allocations: 3.601 MB / 350.7 MB, free: 6.012 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002781/0.03296, allocations: 95.75 kB / 350.7 MB, free: 5.918 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.516e-05/0.03298, allocations: 12 kB / 350.8 MB, free: 5.906 MB / 314.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.0001547/0.03314, allocations: 166.1 kB / 350.9 MB, free: 5.734 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.842e-05/0.03319, allocations: 55.66 kB / 351 MB, free: 5.68 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.852e-05/0.03325, allocations: 56.41 kB / 351 MB, free: 5.625 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.03325, allocations: 8 kB / 351 MB, free: 5.617 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.054e-06/0.03325, allocations: 4 kB / 351 MB, free: 5.613 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.03325, allocations: 0 / 351 MB, free: 5.613 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003476/0.0336, allocations: 437.3 kB / 351.5 MB, free: 5.156 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.0336, allocations: 0 / 351.5 MB, free: 5.156 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002185/0.03382, allocations: 79.86 kB / 351.5 MB, free: 5.078 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006426/0.03446, allocations: 442.2 kB / 352 MB, free: 4.645 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.667e-05/0.03449, allocations: 11.94 kB / 352 MB, free: 4.633 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00446/0.03895, allocations: 3.605 MB / 355.6 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.03895, allocations: 0 / 355.6 MB, free: 0.9258 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002797/0.04175, allocations: 1.5 MB / 357.1 MB, free: 15.4 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001479/0.0419, allocations: 103.7 kB / 357.2 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.687e-05/0.04193, allocations: 4 kB / 357.2 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002489/0.04218, allocations: 79.91 kB / 357.3 MB, free: 15.22 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.926e-05/0.04227, allocations: 51.91 kB / 357.3 MB, free: 15.17 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-05/0.04229, allocations: 15.92 kB / 357.3 MB, free: 15.15 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001889/0.04248, allocations: 279.2 kB / 357.6 MB, free: 14.88 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.04248, allocations: 0 / 357.6 MB, free: 14.88 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000356/0.04284, allocations: 179.8 kB / 357.8 MB, free: 14.7 MB / 330.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.0001174/0.04296, allocations: 107.2 kB / 357.9 MB, free: 14.59 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001432/0.04439, allocations: 0.9752 MB / 358.9 MB, free: 13.58 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.04439, allocations: 4 kB / 358.9 MB, free: 13.58 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007897/0.04518, allocations: 0.5688 MB / 359.4 MB, free: 13 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002785/0.04546, allocations: 81.02 kB / 359.5 MB, free: 12.92 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001945/0.0474, allocations: 1.212 MB / 360.7 MB, free: 11.68 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001351/0.04754, allocations: 240.8 kB / 361 MB, free: 11.42 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.821e-05/0.04764, allocations: 36.48 kB / 361 MB, free: 11.38 MB / 330.7 MB Notification: Performance of SimCode: time 5.01e-07/0.04764, allocations: 0 / 361 MB, free: 11.38 MB / 330.7 MB Notification: Performance of Templates: time 0.0078/0.05544, allocations: 10.06 MB / 371.1 MB, free: 1.348 MB / 330.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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 4.8380290968343616]