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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001667/0.001668, allocations: 107.8 kB / 16.51 MB, free: 6.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00189/0.001891, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.593/1.593, allocations: 222.9 MB / 241.1 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001035/0.001035, allocations: 49.11 kB / 299.9 MB, free: 6.293 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1268/0.1278, allocations: 49.44 MB / 349.4 MB, free: 4.848 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.004914/0.1328, allocations: 3.996 MB / 353.4 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002359/0.1352, allocations: 1.407 MB / 354.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002335/0.1354, allocations: 15.88 kB / 354.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007107/0.1362, allocations: 223.2 kB / 355 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005201/0.1367, allocations: 232 kB / 355.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006097/0.1373, allocations: 242.7 kB / 355.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006123/0.138, allocations: 0.689 MB / 356.2 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002553/0.1382, allocations: 157.7 kB / 356.3 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002867/0.1385, allocations: 247 kB / 356.6 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000289/0.1388, allocations: 290.7 kB / 356.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.47e-05/0.1389, allocations: 32 kB / 356.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001966/0.1391, allocations: 75.91 kB / 357 MB, free: 13.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001371/0.1393, allocations: 119.5 kB / 357.1 MB, free: 13.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002596/0.1395, allocations: 278.5 kB / 357.3 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006078/0.1401, allocations: 0.6773 MB / 358 MB, free: 12.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1401, allocations: 0 / 358 MB, free: 12.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.1402, allocations: 0 / 358 MB, free: 12.16 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.1402, allocations: 0 / 358 MB, free: 12.16 MB / 302.1 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.001616/0.1418, allocations: 0.9374 MB / 359 MB, free: 11.17 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.1418, allocations: 8.031 kB / 359 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001261/0.142, allocations: 64.19 kB / 359 MB, free: 11.1 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005041/0.1425, allocations: 398.9 kB / 359.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.03e-05/0.1425, allocations: 37.36 kB / 359.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.836e-05/0.1426, allocations: 48.12 kB / 359.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007251/0.1433, allocations: 433.5 kB / 359.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.1433, allocations: 0 / 359.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.413e-05/0.1434, allocations: 20 kB / 359.9 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.786e-05/0.1434, allocations: 8 kB / 360 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005894/0.144, allocations: 323.7 kB / 360.3 MB, free: 9.793 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002325/0.1463, allocations: 1.71 MB / 362 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006728/0.147, allocations: 374.9 kB / 362.3 MB, free: 7.605 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003237/0.1474, allocations: 185.4 kB / 362.5 MB, free: 7.422 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.823e-05/0.1474, allocations: 4 kB / 362.5 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004605/0.1479, allocations: 262.4 kB / 362.8 MB, free: 7.137 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.773e-06/0.1479, allocations: 4 kB / 362.8 MB, free: 7.133 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.00219/0.1501, allocations: 1.01 MB / 363.8 MB, free: 6.031 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001163/0.1502, allocations: 191.9 kB / 364 MB, free: 5.801 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005642/0.1508, allocations: 0.494 MB / 364.5 MB, free: 5.297 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.604e-05/0.1508, allocations: 33.7 kB / 364.5 MB, free: 5.258 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001962/0.151, allocations: 256.4 kB / 364.8 MB, free: 5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.987e-05/0.1511, allocations: 122.3 kB / 364.9 MB, free: 4.879 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/0.1513, allocations: 78.05 kB / 365 MB, free: 4.797 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.1514, allocations: 358.8 kB / 365.3 MB, free: 4.438 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002532/0.1517, allocations: 116.8 kB / 365.4 MB, free: 4.324 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003179/0.152, allocations: 221.2 kB / 365.6 MB, free: 4.078 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004783/0.1525, allocations: 273.1 kB / 365.9 MB, free: 3.801 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.1525, allocations: 0 / 365.9 MB, free: 3.801 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008275/0.1534, allocations: 480.7 kB / 366.4 MB, free: 3.312 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.1534, allocations: 8 kB / 366.4 MB, free: 3.305 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.1534, allocations: 0 / 366.4 MB, free: 3.305 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005471/0.154, allocations: 159.4 kB / 366.5 MB, free: 3.137 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002114/0.1542, allocations: 52 kB / 366.6 MB, free: 3.086 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2239/0.3781, allocations: 5.946 MB / 372.5 MB, free: 21.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005252/0.3786, allocations: 55.53 kB / 372.6 MB, free: 21.95 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.058e-05/0.3787, allocations: 15.39 kB / 372.6 MB, free: 21.95 MB / 302.1 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.0002789/0.3789, allocations: 193.2 kB / 372.8 MB, free: 21.83 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.352e-05/0.379, allocations: 57.25 kB / 372.9 MB, free: 21.83 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001181/0.3792, allocations: 60.38 kB / 372.9 MB, free: 21.82 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.794e-06/0.3792, allocations: 7.953 kB / 372.9 MB, free: 21.82 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3792, allocations: 0 / 372.9 MB, free: 21.82 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.3792, allocations: 2.516 kB / 372.9 MB, free: 21.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005825/0.3798, allocations: 489 kB / 373.4 MB, free: 21.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3798, allocations: 0 / 373.4 MB, free: 21.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000143/0.3799, allocations: 29.11 kB / 373.4 MB, free: 21.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004529/0.3804, allocations: 161 kB / 373.6 MB, free: 21.6 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.001e-05/0.3804, allocations: 10.77 kB / 373.6 MB, free: 21.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003543/0.384, allocations: 5.796 MB / 379.4 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.384, allocations: 5.188 kB / 379.4 MB, free: 16.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.385, allocations: 0.5004 MB / 379.9 MB, free: 16.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001708/0.3852, allocations: 161.4 kB / 380.1 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.695e-05/0.3853, allocations: 13.36 kB / 380.1 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002771/0.3856, allocations: 28.48 kB / 380.1 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001522/0.3857, allocations: 51.91 kB / 380.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.832e-05/0.3858, allocations: 13.56 kB / 380.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004117/0.3862, allocations: 360.1 kB / 380.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3862, allocations: 0 / 380.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007636/0.387, allocations: 174.3 kB / 380.7 MB, free: 15.7 MB / 302.1 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,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 17 * 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.00091/0.3879, allocations: 434.7 kB / 381.1 MB, free: 15.53 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001007/0.3889, allocations: 0.7978 MB / 381.9 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3889, allocations: 0 / 381.9 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005687/0.3895, allocations: 0.6498 MB / 382.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005679/0.3901, allocations: 109.3 kB / 382.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001706/0.3918, allocations: 1.152 MB / 383.8 MB, free: 13.69 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000312/0.3921, allocations: 0.857 MB / 384.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001886/0.3923, allocations: 56.33 kB / 384.7 MB, free: 12.96 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.838e-05/0.3924, allocations: 31.09 kB / 384.8 MB, free: 12.95 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3924, allocations: 0 / 384.8 MB, free: 12.95 MB / 302.1 MB Notification: Performance of Templates: time 0.01472/0.4071, allocations: 8.768 MB / 393.5 MB, free: 10.29 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches