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.001196/0.001196, allocations: 105 kB / 17.06 MB, free: 6.109 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.001381/0.001382, allocations: 194.9 kB / 18 MB, free: 5.188 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.471/1.471, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00112/0.00112, allocations: 51.92 kB / 351.3 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4032/0.4044, allocations: 49.44 MB / 400.7 MB, free: 8.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.006174/0.4106, allocations: 3.965 MB / 404.7 MB, free: 4.902 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002848/0.4135, allocations: 1.426 MB / 406.1 MB, free: 3.469 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002862/0.4138, allocations: 7.938 kB / 406.1 MB, free: 3.461 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008395/0.4147, allocations: 254.8 kB / 406.4 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006006/0.4153, allocations: 254.4 kB / 406.6 MB, free: 2.961 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006978/0.416, allocations: 289.8 kB / 406.9 MB, free: 2.68 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007421/0.4167, allocations: 0.7046 MB / 407.6 MB, free: 1.973 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003173/0.4171, allocations: 184.7 kB / 407.8 MB, free: 1.789 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000383/0.4174, allocations: 275 kB / 408.1 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003975/0.4179, allocations: 302.7 kB / 408.4 MB, free: 1.223 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.886e-05/0.4179, allocations: 48 kB / 408.4 MB, free: 1.176 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000245/0.4182, allocations: 99.95 kB / 408.5 MB, free: 1.078 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001751/0.4184, allocations: 143.5 kB / 408.6 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002973/0.4187, allocations: 298.5 kB / 408.9 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007356/0.4194, allocations: 0.702 MB / 409.6 MB, free: 15.94 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.4194, allocations: 4 kB / 409.6 MB, free: 15.94 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.4194, allocations: 0 / 409.6 MB, free: 15.94 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.394e-05/0.4195, allocations: 0 / 409.6 MB, free: 15.94 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.00162/0.4211, allocations: 0.9375 MB / 410.6 MB, free: 14.94 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.4211, allocations: 12.03 kB / 410.6 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001232/0.4213, allocations: 64.19 kB / 410.7 MB, free: 14.87 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005837/0.4219, allocations: 418.7 kB / 411.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.775e-05/0.4219, allocations: 33.38 kB / 411.1 MB, free: 14.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.765e-05/0.422, allocations: 44.06 kB / 411.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000755/0.4227, allocations: 441.5 kB / 411.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.4228, allocations: 0 / 411.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.726e-05/0.4228, allocations: 24 kB / 411.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.968e-06/0.4228, allocations: 8 kB / 411.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006206/0.4235, allocations: 311.8 kB / 411.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002353/0.4258, allocations: 1.703 MB / 413.6 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006897/0.4265, allocations: 371.4 kB / 414 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003492/0.4269, allocations: 184.8 kB / 414.2 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.709e-05/0.4269, allocations: 4 kB / 414.2 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004614/0.4274, allocations: 258.5 kB / 414.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 1.443e-06/0.4274, allocations: 0 / 414.4 MB, free: 10.9 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002167/0.4296, allocations: 1.01 MB / 415.4 MB, free: 9.801 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.4297, allocations: 199.8 kB / 415.6 MB, free: 9.562 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005456/0.4303, allocations: 0.4901 MB / 416.1 MB, free: 9.066 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.74e-05/0.4303, allocations: 33.7 kB / 416.1 MB, free: 9.027 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002017/0.4305, allocations: 260.4 kB / 416.4 MB, free: 8.766 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001038/0.4306, allocations: 122.2 kB / 416.5 MB, free: 8.645 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.4308, allocations: 78.12 kB / 416.6 MB, free: 8.562 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002029/0.431, allocations: 358.8 kB / 416.9 MB, free: 8.203 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002443/0.4312, allocations: 116.8 kB / 417.1 MB, free: 8.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003201/0.4316, allocations: 217.3 kB / 417.3 MB, free: 7.84 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004704/0.432, allocations: 269.3 kB / 417.5 MB, free: 7.566 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.432, allocations: 0 / 417.5 MB, free: 7.566 MB / 334.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008046/0.4329, allocations: 480.8 kB / 418 MB, free: 7.078 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.4329, allocations: 7.938 kB / 418 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.4329, allocations: 0 / 418 MB, free: 7.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004966/0.4334, allocations: 155.4 kB / 418.2 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002116/0.4336, allocations: 47.92 kB / 418.2 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004963/0.4386, allocations: 6.654 MB / 424.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003983/0.439, allocations: 51.66 kB / 424.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.372e-05/0.439, allocations: 8 kB / 424.9 MB, free: 15.59 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.0002494/0.4393, allocations: 192.4 kB / 425.1 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.765e-05/0.4394, allocations: 59.28 kB / 425.2 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001149/0.4395, allocations: 60.75 kB / 425.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.4395, allocations: 4 kB / 425.2 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.4395, allocations: 4 kB / 425.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.4395, allocations: 0 / 425.2 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004841/0.44, allocations: 493.2 kB / 425.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.44, allocations: 4 kB / 425.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001353/0.4402, allocations: 27.98 kB / 425.7 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004086/0.4406, allocations: 167.1 kB / 425.9 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.251e-05/0.4406, allocations: 4 kB / 425.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004706/0.4453, allocations: 6.355 MB / 432.3 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.4454, allocations: 0 / 432.3 MB, free: 7.617 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009908/0.4464, allocations: 0.5111 MB / 432.8 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001931/0.4466, allocations: 156.4 kB / 432.9 MB, free: 6.902 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.899e-05/0.4466, allocations: 11.92 kB / 432.9 MB, free: 6.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002881/0.4469, allocations: 31.98 kB / 433 MB, free: 6.859 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/0.4471, allocations: 55.86 kB / 433 MB, free: 6.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.349e-05/0.4471, allocations: 12 kB / 433 MB, free: 6.793 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000436/0.4476, allocations: 359.1 kB / 433.4 MB, free: 6.441 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4476, allocations: 4 kB / 433.4 MB, free: 6.438 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008009/0.4484, allocations: 171.7 kB / 433.6 MB, free: 6.27 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.00102/0.4494, allocations: 431.4 kB / 434 MB, free: 6 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001163/0.4506, allocations: 0.8108 MB / 434.8 MB, free: 5.137 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.4506, allocations: 0 / 434.8 MB, free: 5.137 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007207/0.4513, allocations: 0.6629 MB / 435.5 MB, free: 4.422 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005467/0.4519, allocations: 127 kB / 435.6 MB, free: 4.301 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001866/0.4538, allocations: 0.9472 MB / 436.5 MB, free: 3.328 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004372/0.4542, allocations: 0.8711 MB / 437.4 MB, free: 2.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001713/0.4544, allocations: 48.16 kB / 437.4 MB, free: 2.383 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.718e-05/0.4545, allocations: 31.44 kB / 437.5 MB, free: 2.352 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.4545, allocations: 0 / 437.5 MB, free: 2.352 MB / 350.1 MB Notification: Performance of Templates: time 0.01672/0.4712, allocations: 9.614 MB / 447.1 MB, free: 8.832 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