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.001267/0.001267, allocations: 111.6 kB / 17.06 MB, free: 6 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.001325/0.001325, allocations: 198.8 kB / 18.01 MB, free: 5.074 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.526/1.526, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001556/0.001556, allocations: 47.94 kB / 351.3 MB, free: 3.211 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4234/0.4249, allocations: 49.43 MB / 400.7 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.00574/0.4307, allocations: 3.972 MB / 404.7 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00263/0.4334, allocations: 1.422 MB / 406.1 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002518/0.4336, allocations: 8 kB / 406.1 MB, free: 3.434 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009188/0.4346, allocations: 253.5 kB / 406.4 MB, free: 3.188 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005951/0.4352, allocations: 262.3 kB / 406.6 MB, free: 2.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000801/0.436, allocations: 289.4 kB / 406.9 MB, free: 2.648 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007835/0.4368, allocations: 0.7086 MB / 407.6 MB, free: 1.938 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002934/0.4371, allocations: 168.7 kB / 407.8 MB, free: 1.77 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003602/0.4375, allocations: 279 kB / 408.1 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003453/0.4378, allocations: 298.8 kB / 408.4 MB, free: 1.203 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.395e-05/0.4379, allocations: 52 kB / 408.4 MB, free: 1.152 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002297/0.4381, allocations: 107.9 kB / 408.5 MB, free: 1.047 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001475/0.4383, allocations: 139.5 kB / 408.7 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000302/0.4386, allocations: 298.4 kB / 408.9 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008054/0.4394, allocations: 0.702 MB / 409.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.4394, allocations: 4 kB / 409.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.4395, allocations: 0 / 409.6 MB, free: 15.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.798e-05/0.4395, allocations: 0 / 409.6 MB, free: 15.91 MB / 334.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.001899/0.4414, allocations: 0.9375 MB / 410.6 MB, free: 14.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.223e-05/0.4414, allocations: 8.031 kB / 410.6 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001345/0.4416, allocations: 68.12 kB / 410.7 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005962/0.4422, allocations: 414.7 kB / 411.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.694e-05/0.4422, allocations: 29.38 kB / 411.1 MB, free: 14.37 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.326e-05/0.4423, allocations: 44.12 kB / 411.1 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007681/0.4431, allocations: 445.5 kB / 411.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.684e-05/0.4431, allocations: 0 / 411.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.695e-05/0.4432, allocations: 16 kB / 411.6 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.852e-05/0.4432, allocations: 12 kB / 411.6 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005981/0.4438, allocations: 315.8 kB / 411.9 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002426/0.4462, allocations: 1.699 MB / 413.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006724/0.4469, allocations: 371.4 kB / 414 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003118/0.4472, allocations: 184.8 kB / 414.1 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.619e-05/0.4473, allocations: 4 kB / 414.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004232/0.4477, allocations: 258.4 kB / 414.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 2.003e-06/0.4478, allocations: 0 / 414.4 MB, free: 10.88 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002269/0.45, allocations: 1.018 MB / 415.4 MB, free: 9.773 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001351/0.4502, allocations: 191.8 kB / 415.6 MB, free: 9.543 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006262/0.4508, allocations: 0.4979 MB / 416.1 MB, free: 9.039 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.596e-05/0.4509, allocations: 33.7 kB / 416.1 MB, free: 9 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002216/0.4511, allocations: 256.3 kB / 416.4 MB, free: 8.742 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.256e-05/0.4512, allocations: 122.3 kB / 416.5 MB, free: 8.621 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001423/0.4513, allocations: 74.12 kB / 416.6 MB, free: 8.543 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.4515, allocations: 362.8 kB / 416.9 MB, free: 8.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002393/0.4518, allocations: 120.8 kB / 417.1 MB, free: 8.062 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000318/0.4521, allocations: 213.2 kB / 417.3 MB, free: 7.816 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004517/0.4525, allocations: 273.3 kB / 417.5 MB, free: 7.539 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.4526, allocations: 0 / 417.5 MB, free: 7.539 MB / 334.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008246/0.4534, allocations: 480.9 kB / 418 MB, free: 7.051 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.537e-05/0.4534, allocations: 4 kB / 418 MB, free: 7.047 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.4534, allocations: 4 kB / 418 MB, free: 7.043 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005812/0.454, allocations: 159.3 kB / 418.2 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002126/0.4543, allocations: 35.98 kB / 418.2 MB, free: 6.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007235/0.4615, allocations: 6.654 MB / 424.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004268/0.462, allocations: 55.75 kB / 424.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001459/0.4621, allocations: 12 kB / 424.9 MB, free: 15.57 MB / 350.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.0003734/0.4625, allocations: 188.3 kB / 425.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.707e-05/0.4626, allocations: 55.28 kB / 425.2 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001219/0.4627, allocations: 64.75 kB / 425.2 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.4627, allocations: 4 kB / 425.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.4627, allocations: 0 / 425.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.744e-06/0.4628, allocations: 3.984 kB / 425.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006443/0.4634, allocations: 493.2 kB / 425.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5e-06/0.4634, allocations: 4 kB / 425.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001283/0.4636, allocations: 27.92 kB / 425.7 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004532/0.464, allocations: 167.3 kB / 425.9 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.144e-05/0.4641, allocations: 8 kB / 425.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006941/0.471, allocations: 6.355 MB / 432.3 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.471, allocations: 3.938 kB / 432.3 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001124/0.4722, allocations: 0.5033 MB / 432.8 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002267/0.4724, allocations: 160.4 kB / 432.9 MB, free: 6.875 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.762e-05/0.4725, allocations: 11.98 kB / 432.9 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002689/0.4728, allocations: 23.98 kB / 433 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00018/0.4729, allocations: 55.92 kB / 433 MB, free: 6.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.727e-05/0.473, allocations: 12 kB / 433 MB, free: 6.773 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004848/0.4735, allocations: 363.1 kB / 433.4 MB, free: 6.418 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4735, allocations: 0 / 433.4 MB, free: 6.418 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009442/0.4744, allocations: 175.7 kB / 433.6 MB, free: 6.246 MB / 350.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.001225/0.4757, allocations: 429.7 kB / 434 MB, free: 5.977 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001896/0.4776, allocations: 0.8069 MB / 434.8 MB, free: 5.117 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/0.4776, allocations: 8 kB / 434.8 MB, free: 5.109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008756/0.4785, allocations: 0.6551 MB / 435.4 MB, free: 4.402 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006537/0.4791, allocations: 134.1 kB / 435.6 MB, free: 4.277 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002192/0.4814, allocations: 0.9407 MB / 436.5 MB, free: 3.309 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006232/0.482, allocations: 0.8672 MB / 437.4 MB, free: 2.414 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002049/0.4822, allocations: 60.14 kB / 437.4 MB, free: 2.355 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.866e-05/0.4823, allocations: 31.44 kB / 437.5 MB, free: 2.324 MB / 350.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4823, allocations: 0 / 437.5 MB, free: 2.324 MB / 350.1 MB Notification: Performance of Templates: time 0.01913/0.5014, allocations: 9.612 MB / 447.1 MB, free: 8.809 MB / 366.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