Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001472/0.001472, allocations: 113.4 kB / 17.73 MB, free: 5.355 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.001467/0.001467, allocations: 184.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.598/1.598, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001914/0.001914, allocations: 55.92 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1065, allocations: 46.61 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.00621/0.1127, allocations: 3.934 MB / 378.6 MB, free: 1.129 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2397/0.3525, allocations: 1.338 MB / 379.9 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005589/0.3531, allocations: 9.75 kB / 379.9 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009115/0.354, allocations: 263.8 kB / 380.2 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008334/0.3549, allocations: 251.6 kB / 380.4 MB, free: 9.172 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008303/0.3557, allocations: 265.8 kB / 380.7 MB, free: 9.168 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001054/0.3568, allocations: 0.7126 MB / 381.4 MB, free: 9.074 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003309/0.3571, allocations: 169.3 kB / 381.6 MB, free: 9.051 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005045/0.3576, allocations: 279.3 kB / 381.8 MB, free: 9 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004797/0.3581, allocations: 298.3 kB / 382.1 MB, free: 8.941 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001371/0.3583, allocations: 54.19 kB / 382.2 MB, free: 8.938 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003494/0.3586, allocations: 95.7 kB / 382.3 MB, free: 8.934 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001953/0.3588, allocations: 141.9 kB / 382.4 MB, free: 8.914 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003619/0.3592, allocations: 304.2 kB / 382.7 MB, free: 8.816 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001077/0.3603, allocations: 0.712 MB / 383.4 MB, free: 8.691 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.3603, allocations: 1.062 kB / 383.4 MB, free: 8.691 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.574e-06/0.3603, allocations: 3.938 kB / 383.4 MB, free: 8.688 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.367e-05/0.3604, allocations: 0 / 383.4 MB, free: 8.688 MB / 318.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.0019/0.3623, allocations: 0.9529 MB / 384.4 MB, free: 8.059 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.3623, allocations: 9.562 kB / 384.4 MB, free: 8.059 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.408e-05/0.3624, allocations: 84 kB / 384.5 MB, free: 8.016 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000154/0.3626, allocations: 69.92 kB / 384.5 MB, free: 7.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006118/0.3632, allocations: 418.8 kB / 385 MB, free: 7.699 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.723e-05/0.3633, allocations: 32.41 kB / 385 MB, free: 7.695 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.591e-05/0.3633, allocations: 36.73 kB / 385 MB, free: 7.695 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008175/0.3642, allocations: 449 kB / 385.5 MB, free: 7.527 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.3642, allocations: 1.641 kB / 385.5 MB, free: 7.527 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.3e-05/0.3642, allocations: 16.59 kB / 385.5 MB, free: 7.516 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.849e-05/0.3643, allocations: 12.64 kB / 385.5 MB, free: 7.516 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006366/0.3649, allocations: 310.5 kB / 385.8 MB, free: 7.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002593/0.3675, allocations: 1.698 MB / 387.5 MB, free: 6.25 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007951/0.3683, allocations: 370.6 kB / 387.9 MB, free: 6.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003624/0.3687, allocations: 188.9 kB / 388 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.103e-05/0.3688, allocations: 3.625 kB / 388 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005342/0.3693, allocations: 261.5 kB / 388.3 MB, free: 5.836 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 2.014e-06/0.3693, allocations: 1.469 kB / 388.3 MB, free: 5.836 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.002451/0.3718, allocations: 1.016 MB / 389.3 MB, free: 5.188 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.178e-05/0.3719, allocations: 187 kB / 389.5 MB, free: 4.969 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008704/0.3728, allocations: 0.5003 MB / 390 MB, free: 4.742 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.108e-05/0.3728, allocations: 37.7 kB / 390 MB, free: 4.703 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002023/0.3731, allocations: 256.3 kB / 390.3 MB, free: 4.496 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000119/0.3732, allocations: 128.2 kB / 390.4 MB, free: 4.398 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001545/0.3733, allocations: 76.41 kB / 390.5 MB, free: 4.355 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.3735, allocations: 359.5 kB / 390.8 MB, free: 4.023 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002697/0.3737, allocations: 122.5 kB / 391 MB, free: 3.977 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003351/0.3741, allocations: 216.9 kB / 391.2 MB, free: 3.828 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005578/0.3747, allocations: 277 kB / 391.4 MB, free: 3.684 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.3747, allocations: 1.312 kB / 391.4 MB, free: 3.684 MB / 318.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001008/0.3757, allocations: 478 kB / 391.9 MB, free: 3.449 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.17e-05/0.3757, allocations: 5.75 kB / 391.9 MB, free: 3.449 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/0.3758, allocations: 1.594 kB / 391.9 MB, free: 3.449 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006215/0.3764, allocations: 163.3 kB / 392.1 MB, free: 3.371 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002553/0.3767, allocations: 48.62 kB / 392.1 MB, free: 3.363 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005714/0.3824, allocations: 6.655 MB / 398.8 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006761/0.3831, allocations: 53.14 kB / 398.8 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.59e-05/0.3832, allocations: 17.16 kB / 398.8 MB, free: 12.85 MB / 334.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.0005185/0.3837, allocations: 185.5 kB / 399 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001442/0.3838, allocations: 53.25 kB / 399.1 MB, free: 12.67 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001611/0.384, allocations: 65.05 kB / 399.1 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/0.384, allocations: 4.625 kB / 399.1 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.384, allocations: 5.109 kB / 399.1 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.3841, allocations: 2.469 kB / 399.1 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009175/0.385, allocations: 496.7 kB / 399.6 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.385, allocations: 0 / 399.6 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000156/0.3852, allocations: 32.66 kB / 399.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005396/0.3857, allocations: 156.7 kB / 399.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.493e-05/0.3858, allocations: 15.78 kB / 399.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006516/0.3923, allocations: 6.352 MB / 406.2 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.3924, allocations: 0 / 406.2 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001407/0.3938, allocations: 0.512 MB / 406.7 MB, free: 5.758 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003366/0.3941, allocations: 162.5 kB / 406.9 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/0.3942, allocations: 11.69 kB / 406.9 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003076/0.3946, allocations: 32.86 kB / 406.9 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002153/0.3948, allocations: 52.12 kB / 407 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.351e-05/0.3948, allocations: 9.078 kB / 407 MB, free: 5.586 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005627/0.3954, allocations: 364.3 kB / 407.3 MB, free: 5.422 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.3954, allocations: 0 / 407.3 MB, free: 5.422 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009733/0.3964, allocations: 172.3 kB / 407.5 MB, free: 5.387 MB / 334.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.003097/0.3995, allocations: 1.381 MB / 408.9 MB, free: 4.32 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001749/0.4013, allocations: 0.8139 MB / 409.7 MB, free: 3.727 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.4013, allocations: 192 / 409.7 MB, free: 3.727 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001059/0.4024, allocations: 0.6552 MB / 410.3 MB, free: 3.188 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008978/0.4033, allocations: 111.6 kB / 410.4 MB, free: 3.145 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009126/0.4124, allocations: 4.258 MB / 414.7 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006843/0.4132, allocations: 0.8615 MB / 415.6 MB, free: 28 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003771/0.4136, allocations: 48.77 kB / 415.6 MB, free: 16 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000666/0.4143, allocations: 201.9 kB / 415.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of SimCode: time 1.262e-06/0.4143, allocations: 5.438 kB / 415.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05832/0.4726, allocations: 14.41 MB / 430.2 MB, free: 5.316 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.58/14.05, allocations: 4 kB / 430.2 MB, free: 5.312 MB / 350.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv --start-time 0 --stop-time 6 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0024 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches