Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001895/0.001895, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002714/0.002714, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.76/1.76, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001756, allocations: 51.92 kB / 373.5 MB, free: 9.684 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1473/0.1491, allocations: 53.33 MB / 426.8 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.007448/0.1565, allocations: 4.011 MB / 430.8 MB, free: 232 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2645/0.421, allocations: 1.613 MB / 432.4 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005306/0.4215, allocations: 14.83 kB / 432.4 MB, free: 8.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000869/0.4224, allocations: 254.8 kB / 432.7 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009097/0.4233, allocations: 303.2 kB / 433 MB, free: 7.977 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008262/0.4241, allocations: 264.2 kB / 433.3 MB, free: 7.949 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009135/0.425, allocations: 0.72 MB / 434 MB, free: 7.805 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003099/0.4253, allocations: 128.9 kB / 434.1 MB, free: 7.789 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005822/0.4259, allocations: 294.2 kB / 434.4 MB, free: 7.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004567/0.4264, allocations: 308.7 kB / 434.7 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001063/0.4265, allocations: 50.47 kB / 434.7 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003143/0.4268, allocations: 101.2 kB / 434.8 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001592/0.4269, allocations: 146.2 kB / 435 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003296/0.4273, allocations: 303.5 kB / 435.3 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0012/0.4285, allocations: 0.7237 MB / 436 MB, free: 7.414 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.4285, allocations: 0 / 436 MB, free: 7.414 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4285, allocations: 2.75 kB / 436 MB, free: 7.414 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.532e-05/0.4285, allocations: 9.828 kB / 436 MB, free: 7.406 MB / 350.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.002078/0.4306, allocations: 0.9642 MB / 437 MB, free: 6.707 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.4306, allocations: 13.22 kB / 437 MB, free: 6.703 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002926/0.4309, allocations: 82.33 kB / 437.1 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000636/0.4315, allocations: 421.8 kB / 437.5 MB, free: 6.344 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.853e-05/0.4316, allocations: 31.34 kB / 437.5 MB, free: 6.332 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.293e-05/0.4316, allocations: 41.36 kB / 437.5 MB, free: 6.316 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008761/0.4325, allocations: 444.9 kB / 438 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.4325, allocations: 0.5625 kB / 438 MB, free: 6.094 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.688e-05/0.4326, allocations: 15.97 kB / 438 MB, free: 6.082 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.528e-05/0.4326, allocations: 10.25 kB / 438 MB, free: 6.082 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007064/0.4333, allocations: 317.8 kB / 438.3 MB, free: 5.969 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003111/0.4364, allocations: 1.698 MB / 440 MB, free: 4.809 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008803/0.4373, allocations: 333.6 kB / 440.3 MB, free: 4.648 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003689/0.4377, allocations: 154.8 kB / 440.5 MB, free: 4.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.263e-05/0.4377, allocations: 4.375 kB / 440.5 MB, free: 4.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005333/0.4383, allocations: 264.5 kB / 440.8 MB, free: 4.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.755e-06/0.4383, allocations: 0 / 440.8 MB, free: 4.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.00257/0.4408, allocations: 1.017 MB / 441.8 MB, free: 3.777 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.499e-05/0.4409, allocations: 189.5 kB / 442 MB, free: 3.555 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009595/0.4419, allocations: 0.5041 MB / 442.5 MB, free: 3.328 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.683e-05/0.4419, allocations: 37.95 kB / 442.5 MB, free: 3.289 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002198/0.4422, allocations: 261.6 kB / 442.8 MB, free: 3.074 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/0.4423, allocations: 131.6 kB / 442.9 MB, free: 2.977 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001512/0.4424, allocations: 76.14 kB / 443 MB, free: 2.934 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.4425, allocations: 361.5 kB / 443.3 MB, free: 2.598 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002858/0.4428, allocations: 121.2 kB / 443.4 MB, free: 2.555 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003854/0.4432, allocations: 212.8 kB / 443.6 MB, free: 2.414 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005174/0.4437, allocations: 274.5 kB / 443.9 MB, free: 2.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.4437, allocations: 0 / 443.9 MB, free: 2.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.00109/0.4448, allocations: 470.4 kB / 444.4 MB, free: 2.039 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.255e-05/0.4449, allocations: 10.42 kB / 444.4 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.517e-05/0.4449, allocations: 2.5 kB / 444.4 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007786/0.4456, allocations: 156 kB / 444.5 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002874/0.4459, allocations: 50.11 kB / 444.6 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006349/0.4523, allocations: 6.652 MB / 451.2 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007357/0.453, allocations: 53.38 kB / 451.3 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.029e-05/0.4531, allocations: 14.11 kB / 451.3 MB, free: 11.45 MB / 366.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.0004252/0.4535, allocations: 188 kB / 451.5 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001335/0.4536, allocations: 62.47 kB / 451.5 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001408/0.4538, allocations: 58.38 kB / 451.6 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.4538, allocations: 7.688 kB / 451.6 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.425e-06/0.4538, allocations: 5.875 kB / 451.6 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.023e-06/0.4538, allocations: 1.781 kB / 451.6 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007865/0.4546, allocations: 494.2 kB / 452.1 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.879e-06/0.4546, allocations: 2.016 kB / 452.1 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001537/0.4547, allocations: 28.47 kB / 452.1 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005415/0.4553, allocations: 158.2 kB / 452.3 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.826e-05/0.4553, allocations: 12.41 kB / 452.3 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006605/0.4619, allocations: 6.361 MB / 458.7 MB, free: 4.629 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.4619, allocations: 5.531 kB / 458.7 MB, free: 4.625 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001429/0.4633, allocations: 0.4957 MB / 459.2 MB, free: 4.363 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000317/0.4637, allocations: 162.1 kB / 459.3 MB, free: 4.219 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.695e-05/0.4637, allocations: 17.42 kB / 459.3 MB, free: 4.207 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003193/0.4641, allocations: 27.44 kB / 459.4 MB, free: 4.203 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002139/0.4643, allocations: 57.03 kB / 459.4 MB, free: 4.188 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.85e-05/0.4643, allocations: 11.23 kB / 459.4 MB, free: 4.188 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007432/0.465, allocations: 368 kB / 459.8 MB, free: 4.023 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.465, allocations: 1.094 kB / 459.8 MB, free: 4.023 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001348/0.4664, allocations: 177.2 kB / 460 MB, free: 3.984 MB / 366.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.001882/0.4683, allocations: 436.7 kB / 460.4 MB, free: 3.805 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001559/0.4698, allocations: 0.7993 MB / 461.2 MB, free: 3.211 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.4698, allocations: 0 / 461.2 MB, free: 3.211 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009684/0.4708, allocations: 0.6337 MB / 461.8 MB, free: 2.684 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007753/0.4716, allocations: 126.5 kB / 461.9 MB, free: 2.633 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002549/0.4741, allocations: 0.9877 MB / 462.9 MB, free: 2.105 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006201/0.4748, allocations: 0.8629 MB / 463.8 MB, free: 1.395 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002898/0.475, allocations: 49.03 kB / 463.8 MB, free: 1.387 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.674e-05/0.4751, allocations: 31.83 kB / 463.9 MB, free: 1.379 MB / 366.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4751, allocations: 0 / 463.9 MB, free: 1.379 MB / 366.1 MB Notification: Performance of Templates: time 0.0267/0.5018, allocations: 9.744 MB / 473.6 MB, free: 13.44 MB / 382.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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: 5.746578421443701]