Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001551/0.001551, allocations: 116 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001707/0.001707, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.564/1.564, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 63.84 kB / 306.4 MB, free: 0.8477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1479/0.1493, allocations: 50.54 MB / 357 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.007737/0.157, allocations: 4.025 MB / 361 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004006/0.1611, allocations: 1.597 MB / 362.6 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008884/0.1621, allocations: 8 kB / 362.6 MB, free: 8.648 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001296/0.1635, allocations: 223.2 kB / 362.8 MB, free: 8.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00137/0.1648, allocations: 270.6 kB / 363.1 MB, free: 8.164 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001063/0.1659, allocations: 239.1 kB / 363.3 MB, free: 7.934 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001344/0.1673, allocations: 0.7201 MB / 364 MB, free: 7.211 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004623/0.1678, allocations: 173.1 kB / 364.2 MB, free: 7.031 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007887/0.1686, allocations: 282.9 kB / 364.5 MB, free: 6.754 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006104/0.1692, allocations: 302.8 kB / 364.8 MB, free: 6.457 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000165/0.1694, allocations: 56 kB / 364.8 MB, free: 6.402 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004447/0.1698, allocations: 103.9 kB / 364.9 MB, free: 6.301 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002408/0.1701, allocations: 143.5 kB / 365.1 MB, free: 6.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006542/0.1708, allocations: 306.4 kB / 365.4 MB, free: 5.859 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001388/0.1722, allocations: 0.7007 MB / 366.1 MB, free: 5.156 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.095e-05/0.1722, allocations: 0 / 366.1 MB, free: 5.156 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.467e-06/0.1722, allocations: 3.938 kB / 366.1 MB, free: 5.152 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.635e-05/0.1723, allocations: 0 / 366.1 MB, free: 5.152 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.002525/0.1748, allocations: 0.9478 MB / 367 MB, free: 4.148 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.299e-05/0.1749, allocations: 8.031 kB / 367 MB, free: 4.141 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003325/0.1752, allocations: 88.08 kB / 367.1 MB, free: 4.055 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007185/0.1759, allocations: 414.8 kB / 367.5 MB, free: 3.609 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.223e-05/0.176, allocations: 33.38 kB / 367.6 MB, free: 3.578 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.74e-05/0.1761, allocations: 40.12 kB / 367.6 MB, free: 3.539 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008898/0.177, allocations: 449.5 kB / 368 MB, free: 3.078 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.721e-05/0.177, allocations: 0 / 368 MB, free: 3.078 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.614e-05/0.1771, allocations: 16 kB / 368.1 MB, free: 3.062 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.625e-05/0.1771, allocations: 8 kB / 368.1 MB, free: 3.055 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006572/0.1777, allocations: 319.8 kB / 368.4 MB, free: 2.738 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002867/0.1806, allocations: 1.706 MB / 370.1 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008087/0.1814, allocations: 371.9 kB / 370.4 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003468/0.1818, allocations: 180.8 kB / 370.6 MB, free: 396 kB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.229e-05/0.1819, allocations: 4 kB / 370.6 MB, free: 392 kB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005074/0.1824, allocations: 258.4 kB / 370.9 MB, free: 108 kB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.335e-06/0.1824, allocations: 0 / 370.9 MB, free: 108 kB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.2617/0.4441, allocations: 1.016 MB / 371.9 MB, free: 20.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.363e-05/0.4442, allocations: 184.9 kB / 372.1 MB, free: 19.94 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009576/0.4452, allocations: 0.5043 MB / 372.6 MB, free: 19.84 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.568e-05/0.4452, allocations: 35.64 kB / 372.6 MB, free: 19.8 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002839/0.4455, allocations: 262.8 kB / 372.9 MB, free: 19.72 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00014/0.4457, allocations: 131.5 kB / 373 MB, free: 19.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001841/0.4459, allocations: 72.94 kB / 373.1 MB, free: 19.64 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001825/0.4461, allocations: 365.5 kB / 373.4 MB, free: 19.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003184/0.4464, allocations: 118.7 kB / 373.5 MB, free: 19.33 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004367/0.4468, allocations: 214.1 kB / 373.8 MB, free: 19.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005698/0.4474, allocations: 273 kB / 374 MB, free: 19.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.4474, allocations: 0 / 374 MB, free: 19.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008947/0.4483, allocations: 473.7 kB / 374.5 MB, free: 18.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.309e-05/0.4484, allocations: 8.469 kB / 374.5 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.016e-05/0.4484, allocations: 1.797 kB / 374.5 MB, free: 18.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005523/0.4489, allocations: 159.4 kB / 374.6 MB, free: 18.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002502/0.4492, allocations: 53.3 kB / 374.7 MB, free: 18.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00421/0.4534, allocations: 6.64 MB / 381.3 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004264/0.4539, allocations: 55.5 kB / 381.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.216e-05/0.4539, allocations: 12.72 kB / 381.4 MB, free: 12.33 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.0002897/0.4542, allocations: 194.8 kB / 381.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.988e-05/0.4543, allocations: 52.28 kB / 381.6 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001177/0.4544, allocations: 58.17 kB / 381.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.4544, allocations: 3.781 kB / 381.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/0.4545, allocations: 5.719 kB / 381.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.4545, allocations: 5.812 kB / 381.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005932/0.4551, allocations: 498.9 kB / 382.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.4551, allocations: 0.8438 kB / 382.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001356/0.4552, allocations: 24.33 kB / 382.2 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004172/0.4556, allocations: 162.2 kB / 382.4 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.801e-05/0.4557, allocations: 9.234 kB / 382.4 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003635/0.4593, allocations: 6.369 MB / 388.8 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.4593, allocations: 2.5 kB / 388.8 MB, free: 5.516 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009966/0.4603, allocations: 0.4983 MB / 389.3 MB, free: 5.254 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001831/0.4605, allocations: 162.9 kB / 389.4 MB, free: 5.109 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.761e-05/0.4606, allocations: 7.938 kB / 389.4 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002872/0.4609, allocations: 36.03 kB / 389.5 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001693/0.4611, allocations: 52.27 kB / 389.5 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.575e-05/0.4611, allocations: 13.69 kB / 389.5 MB, free: 5.078 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004685/0.4616, allocations: 368.8 kB / 389.9 MB, free: 4.91 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4616, allocations: 5.156 kB / 389.9 MB, free: 4.906 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008657/0.4625, allocations: 174.6 kB / 390.1 MB, free: 4.875 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.001002/0.4635, allocations: 431.3 kB / 390.5 MB, free: 4.695 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001199/0.4647, allocations: 0.8149 MB / 391.3 MB, free: 4.105 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.4647, allocations: 0 / 391.3 MB, free: 4.105 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006223/0.4654, allocations: 0.6574 MB / 392 MB, free: 3.566 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005977/0.466, allocations: 119.4 kB / 392.1 MB, free: 3.516 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002113/0.4681, allocations: 1.16 MB / 393.2 MB, free: 2.824 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004074/0.4685, allocations: 0.8639 MB / 394.1 MB, free: 2.109 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000243/0.4688, allocations: 53.33 kB / 394.2 MB, free: 2.094 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.82e-05/0.4689, allocations: 32.22 kB / 394.2 MB, free: 2.086 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4689, allocations: 0 / 394.2 MB, free: 2.086 MB / 302.1 MB Notification: Performance of Templates: time 0.02054/0.4894, allocations: 9.343 MB / 403.5 MB, free: 14.76 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches