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.00139/0.00139, allocations: 82.28 kB / 22.21 MB, free: 2.293 MB / 18.57 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.001171/0.001171, allocations: 145 kB / 25.59 MB, free: 8.941 MB / 18.57 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.035/1.035, allocations: 173.4 MB / 202.2 MB, free: 8.301 MB / 186.7 MB " [Timeout remaining time 179] 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 1.933e-06/1.933e-06, allocations: 3.938 kB / 269.2 MB, free: 9.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.391e-05/2.584e-05, allocations: 2.312 kB / 269.2 MB, free: 9.773 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SimpleTriacCircuit): time 0.004256/0.004282, allocations: 3.942 MB / 273.1 MB, free: 5.828 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002023/0.006304, allocations: 0.9899 MB / 274.1 MB, free: 4.84 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002709/0.006575, allocations: 11.94 kB / 274.1 MB, free: 4.828 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002192/0.006794, allocations: 87.08 kB / 274.2 MB, free: 4.742 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000315/0.007109, allocations: 196.6 kB / 274.4 MB, free: 4.551 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004934/0.007603, allocations: 225.5 kB / 274.6 MB, free: 4.332 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006732/0.008276, allocations: 0.8331 MB / 275.5 MB, free: 3.496 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002084/0.008484, allocations: 113.5 kB / 275.6 MB, free: 3.379 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004803/0.008964, allocations: 463.8 kB / 276 MB, free: 2.926 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002998/0.009264, allocations: 279.7 kB / 276.3 MB, free: 2.652 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.978e-05/0.009344, allocations: 80 kB / 276.4 MB, free: 2.574 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.258e-05/0.009417, allocations: 80 kB / 276.5 MB, free: 2.496 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.4e-05/0.00951, allocations: 151.5 kB / 276.6 MB, free: 2.348 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001754/0.009686, allocations: 235.4 kB / 276.8 MB, free: 2.117 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004389/0.01012, allocations: 0.5139 MB / 277.4 MB, free: 1.602 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.127e-06/0.01013, allocations: 0 / 277.4 MB, free: 1.602 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.01013, allocations: 3.938 kB / 277.4 MB, free: 1.598 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.982e-06/0.01014, allocations: 0 / 277.4 MB, free: 1.598 MB / 250.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.001277/0.01141, allocations: 0.9958 MB / 278.4 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.51e-05/0.01145, allocations: 8.031 kB / 278.4 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001116/0.01156, allocations: 92.56 kB / 278.5 MB, free: 472 kB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006064/0.01217, allocations: 354.5 kB / 278.8 MB, free: 88 kB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.019e-05/0.0122, allocations: 29.38 kB / 278.8 MB, free: 60 kB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.041e-05/0.01225, allocations: 36.38 kB / 278.9 MB, free: 24 kB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005879/0.01283, allocations: 453.3 kB / 279.3 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.01285, allocations: 192 / 279.3 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.527e-05/0.01288, allocations: 16.38 kB / 279.3 MB, free: 15.52 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.01289, allocations: 11.94 kB / 279.3 MB, free: 15.51 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002438/0.01313, allocations: 162.7 kB / 279.5 MB, free: 15.35 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001778/0.01491, allocations: 1.88 MB / 281.4 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009433/0.01586, allocations: 372.3 kB / 281.7 MB, free: 13.01 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001917/0.01605, allocations: 142.2 kB / 281.9 MB, free: 12.87 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.127e-05/0.01608, allocations: 12.33 kB / 281.9 MB, free: 12.86 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002683/0.01635, allocations: 239.8 kB / 282.1 MB, free: 12.59 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 2.084e-06/0.01635, allocations: 0 / 282.1 MB, free: 12.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.003638/0.01999, allocations: 1.094 MB / 283.2 MB, free: 11.49 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.637e-05/0.02003, allocations: 85.09 kB / 283.3 MB, free: 11.39 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002841/0.02032, allocations: 402.4 kB / 283.7 MB, free: 10.98 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.611e-05/0.02035, allocations: 33.7 kB / 283.7 MB, free: 10.94 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/0.0205, allocations: 279.5 kB / 284 MB, free: 10.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.674e-05/0.02059, allocations: 138.8 kB / 284.1 MB, free: 10.52 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001109/0.02071, allocations: 79.67 kB / 284.2 MB, free: 10.43 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.02084, allocations: 0.5195 MB / 284.7 MB, free: 9.902 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001297/0.02097, allocations: 98.52 kB / 284.8 MB, free: 9.801 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001538/0.02112, allocations: 178.1 kB / 285 MB, free: 9.605 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002398/0.02136, allocations: 183.6 kB / 285.2 MB, free: 9.41 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.02136, allocations: 0 / 285.2 MB, free: 9.41 MB / 266.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008307/0.02219, allocations: 474.9 kB / 285.6 MB, free: 8.926 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002333/0.02243, allocations: 35.72 kB / 285.7 MB, free: 8.887 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.02243, allocations: 4 kB / 285.7 MB, free: 8.883 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004238/0.02286, allocations: 203.4 kB / 285.9 MB, free: 8.68 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002038/0.02306, allocations: 75.89 kB / 286 MB, free: 8.605 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002883/0.02594, allocations: 2.715 MB / 288.7 MB, free: 5.785 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002576/0.0262, allocations: 63.73 kB / 288.7 MB, free: 5.723 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.577e-05/0.02623, allocations: 8 kB / 288.7 MB, free: 5.715 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.0001525/0.02638, allocations: 185 kB / 288.9 MB, free: 5.523 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.966e-05/0.02645, allocations: 59.72 kB / 289 MB, free: 5.465 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.876e-05/0.02652, allocations: 60.36 kB / 289 MB, free: 5.406 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.358e-06/0.02652, allocations: 7.938 kB / 289 MB, free: 5.398 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.02653, allocations: 4 kB / 289.1 MB, free: 5.395 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.02653, allocations: 3.984 kB / 289.1 MB, free: 5.391 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003284/0.02686, allocations: 313.4 kB / 289.4 MB, free: 5.055 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.02686, allocations: 0 / 289.4 MB, free: 5.055 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000196/0.02706, allocations: 67.89 kB / 289.4 MB, free: 4.988 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003773/0.02744, allocations: 203.4 kB / 289.6 MB, free: 4.785 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.934e-05/0.02747, allocations: 7.984 kB / 289.6 MB, free: 4.777 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002664/0.03013, allocations: 2.724 MB / 292.4 MB, free: 1.941 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.724e-06/0.03013, allocations: 0 / 292.4 MB, free: 1.941 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001626/0.03176, allocations: 0.5849 MB / 292.9 MB, free: 1.328 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001639/0.03192, allocations: 99.59 kB / 293 MB, free: 1.23 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.608e-05/0.03197, allocations: 15.92 kB / 293.1 MB, free: 1.215 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001957/0.03216, allocations: 39.97 kB / 293.1 MB, free: 1.176 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001083/0.03227, allocations: 59.89 kB / 293.2 MB, free: 1.117 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-05/0.03229, allocations: 8 kB / 293.2 MB, free: 1.109 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001671/0.03246, allocations: 263 kB / 293.4 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03246, allocations: 4 kB / 293.4 MB, free: 0.8555 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004749/0.03294, allocations: 175.7 kB / 293.6 MB, free: 0.6836 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.0001568/0.03309, allocations: 107.2 kB / 293.7 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007588/0.03385, allocations: 0.5649 MB / 294.3 MB, free: 15.96 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.03385, allocations: 0 / 294.3 MB, free: 15.96 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004437/0.0343, allocations: 413.3 kB / 294.7 MB, free: 15.54 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003098/0.03461, allocations: 97.41 kB / 294.8 MB, free: 15.45 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001666/0.03627, allocations: 0.9644 MB / 295.7 MB, free: 14.45 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.521e-05/0.03636, allocations: 121.7 kB / 295.8 MB, free: 14.31 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001443/0.0365, allocations: 43.27 kB / 295.9 MB, free: 14.27 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002058/0.03671, allocations: 158.1 kB / 296 MB, free: 14.11 MB / 282.7 MB Notification: Performance of SimCode: time 1.333e-06/0.03671, allocations: 0 / 296 MB, free: 14.11 MB / 282.7 MB Notification: Performance of Templates: time 0.01495/0.05166, allocations: 13.53 MB / 309.6 MB, free: 0.7188 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SimpleTriacCircuit.pipe 2>&1) [Timeout 240] 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","",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.4729768987745047]