Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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.001025/0.001025, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.001411/0.001411, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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 0.9659/0.9659, allocations: 173.3 MB / 201.1 MB, free: 8.973 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.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 268 MB, free: 6.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.718e-05/1.883e-05, allocations: 6.25 kB / 268 MB, free: 6.27 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.004608/0.004626, allocations: 3.957 MB / 272 MB, free: 2.297 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002513/0.00714, allocations: 1.41 MB / 273.4 MB, free: 0.8789 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003815/0.007521, allocations: 11.94 kB / 273.4 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008183/0.008339, allocations: 254.7 kB / 273.6 MB, free: 0.6172 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006232/0.008963, allocations: 262.2 kB / 273.9 MB, free: 368 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006966/0.009659, allocations: 299.1 kB / 274.2 MB, free: 68 kB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009019/0.01056, allocations: 0.7316 MB / 274.9 MB, free: 15.33 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002683/0.01083, allocations: 117.5 kB / 275 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006249/0.01145, allocations: 403.1 kB / 275.4 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00039/0.01184, allocations: 239.3 kB / 275.6 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.044e-05/0.01192, allocations: 48 kB / 275.7 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002585/0.01218, allocations: 103.8 kB / 275.8 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001564/0.01234, allocations: 151.5 kB / 275.9 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001967/0.01254, allocations: 211.4 kB / 276.2 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006694/0.01321, allocations: 0.4904 MB / 276.6 MB, free: 13.59 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.01321, allocations: 3.938 kB / 276.6 MB, free: 13.58 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.01321, allocations: 3.938 kB / 276.6 MB, free: 13.58 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.272e-05/0.01323, allocations: 0 / 276.6 MB, free: 13.58 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.00136/0.01459, allocations: 0.9693 MB / 277.6 MB, free: 12.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.01463, allocations: 12.92 kB / 277.6 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001512/0.01478, allocations: 104.5 kB / 277.7 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004966/0.01528, allocations: 351.2 kB / 278.1 MB, free: 12.08 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.655e-05/0.01531, allocations: 29.38 kB / 278.1 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.913e-05/0.01536, allocations: 48.31 kB / 278.2 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005342/0.0159, allocations: 462.2 kB / 278.6 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.01591, allocations: 3.938 kB / 278.6 MB, free: 11.49 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.173e-05/0.01595, allocations: 16 kB / 278.6 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.736e-05/0.01596, allocations: 12 kB / 278.6 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002943/0.01626, allocations: 173.8 kB / 278.8 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001822/0.01808, allocations: 1.688 MB / 280.5 MB, free: 9.52 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005139/0.01859, allocations: 291.4 kB / 280.8 MB, free: 9.219 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001741/0.01877, allocations: 119.4 kB / 280.9 MB, free: 9.098 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.338e-05/0.0188, allocations: 4 kB / 280.9 MB, free: 9.094 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003517/0.01915, allocations: 336.9 kB / 281.2 MB, free: 8.703 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 1.884e-06/0.01915, allocations: 4 kB / 281.2 MB, free: 8.699 MB / 266.7 MB Notification: Performance of matching and sorting (n=40): time 0.00119/0.02034, allocations: 0.5951 MB / 281.8 MB, free: 8.082 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.34e-05/0.02043, allocations: 162.2 kB / 282 MB, free: 7.887 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003812/0.02081, allocations: 446.7 kB / 282.4 MB, free: 7.434 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.145e-05/0.02084, allocations: 37.7 kB / 282.5 MB, free: 7.391 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002071/0.02105, allocations: 319.4 kB / 282.8 MB, free: 7.074 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.923e-05/0.02113, allocations: 123 kB / 282.9 MB, free: 6.953 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001328/0.02126, allocations: 83.8 kB / 283 MB, free: 6.863 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001906/0.02145, allocations: 0.5274 MB / 283.5 MB, free: 6.324 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001329/0.02158, allocations: 68.95 kB / 283.6 MB, free: 6.258 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002448/0.02183, allocations: 303 kB / 283.9 MB, free: 5.887 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002628/0.02209, allocations: 184.7 kB / 284 MB, free: 5.691 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.309e-06/0.02209, allocations: 0 / 284 MB, free: 5.691 MB / 266.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0005198/0.02261, allocations: 380.3 kB / 284.4 MB, free: 5.297 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/0.02264, allocations: 8 kB / 284.4 MB, free: 5.289 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.02264, allocations: 0 / 284.4 MB, free: 5.289 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003689/0.02301, allocations: 142.7 kB / 284.6 MB, free: 5.133 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001597/0.02317, allocations: 47.91 kB / 284.6 MB, free: 5.086 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1296/0.1528, allocations: 8.236 MB / 292.8 MB, free: 25.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003547/0.1531, allocations: 53.36 kB / 292.9 MB, free: 25.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.907e-05/0.1532, allocations: 15.56 kB / 292.9 MB, free: 25.07 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,IdealGTOThyristor2.off,IdealThyristor2.off,$PRE.IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEvent,IdealGTOThyristor1.off,IdealThyristor1.fire,IdealThyristor1.off,$PRE.IdealThyristor1.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001872/0.1534, allocations: 188.2 kB / 293.1 MB, free: 24.9 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.395e-05/0.1535, allocations: 62.02 kB / 293.2 MB, free: 24.9 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006637/0.1541, allocations: 412.1 kB / 293.6 MB, free: 24.8 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.1541, allocations: 10.47 kB / 293.6 MB, free: 24.79 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.264e-06/0.1541, allocations: 0 / 293.6 MB, free: 24.79 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.1541, allocations: 3.141 kB / 293.6 MB, free: 24.79 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00044/0.1546, allocations: 347.6 kB / 293.9 MB, free: 24.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.1546, allocations: 2.25 kB / 293.9 MB, free: 24.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.1547, allocations: 30.23 kB / 293.9 MB, free: 24.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003269/0.155, allocations: 140.6 kB / 294.1 MB, free: 24.61 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.143e-05/0.155, allocations: 13.91 kB / 294.1 MB, free: 24.61 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00288/0.1579, allocations: 7.787 MB / 301.9 MB, free: 17.27 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.1579, allocations: 1.031 kB / 301.9 MB, free: 17.27 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006431/0.1586, allocations: 449 kB / 302.3 MB, free: 17.11 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001418/0.1587, allocations: 74.61 kB / 302.4 MB, free: 17.08 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.709e-05/0.1588, allocations: 13.27 kB / 302.4 MB, free: 17.08 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001315/0.1589, allocations: 29.72 kB / 302.4 MB, free: 17.08 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001689/0.1591, allocations: 59.11 kB / 302.5 MB, free: 17.08 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.693e-05/0.1591, allocations: 9.484 kB / 302.5 MB, free: 17.08 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002633/0.1593, allocations: 310.3 kB / 302.8 MB, free: 16.95 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1593, allocations: 0 / 302.8 MB, free: 16.95 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006644/0.16, allocations: 173.8 kB / 303 MB, free: 16.94 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,booleanPulse.pulseStart) * Number of discrete states: 4 (IdealThyristor1.off,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * 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): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009801/0.161, allocations: 416.3 kB / 303.4 MB, free: 16.81 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007753/0.1618, allocations: 0.9373 MB / 304.3 MB, free: 16.1 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1618, allocations: 0 / 304.3 MB, free: 16.1 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004228/0.1622, allocations: 0.8349 MB / 305.2 MB, free: 15.4 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003724/0.1626, allocations: 116.7 kB / 305.3 MB, free: 15.39 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001629/0.1642, allocations: 0.8961 MB / 306.2 MB, free: 14.95 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001094/0.1643, allocations: 135 kB / 306.3 MB, free: 14.88 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000134/0.1644, allocations: 43.41 kB / 306.3 MB, free: 14.87 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.11e-05/0.1645, allocations: 36.3 kB / 306.4 MB, free: 14.87 MB / 266.7 MB Notification: Performance of SimCode: time 1.082e-06/0.1645, allocations: 1.094 kB / 306.4 MB, free: 14.87 MB / 266.7 MB Notification: Performance of Templates: time 0.01345/0.178, allocations: 9.163 MB / 315.5 MB, free: 11.64 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.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.305923002306372]