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.001448/0.001448, allocations: 106.5 kB / 17.73 MB, free: 5.363 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.001348/0.001348, allocations: 187.1 kB / 18.66 MB, free: 4.438 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.597/1.597, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001344/0.001344, allocations: 55.92 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09709/0.09844, allocations: 46.61 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005393/0.1039, allocations: 3.935 MB / 378.6 MB, free: 1.141 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.2225/0.3264, allocations: 1.338 MB / 379.9 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000607/0.3271, allocations: 10.97 kB / 379.9 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009457/0.3281, allocations: 257.2 kB / 380.2 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00069/0.3288, allocations: 253.6 kB / 380.4 MB, free: 9.16 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007481/0.3295, allocations: 263 kB / 380.7 MB, free: 9.156 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000848/0.3304, allocations: 0.723 MB / 381.4 MB, free: 9.066 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003036/0.3307, allocations: 166.5 kB / 381.6 MB, free: 9.047 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004246/0.3311, allocations: 277.1 kB / 381.8 MB, free: 9.004 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004259/0.3316, allocations: 300.4 kB / 382.1 MB, free: 8.938 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001049/0.3317, allocations: 52.3 kB / 382.2 MB, free: 8.938 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002976/0.332, allocations: 93.55 kB / 382.3 MB, free: 8.938 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001849/0.3322, allocations: 151.1 kB / 382.4 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002857/0.3325, allocations: 301.2 kB / 382.7 MB, free: 8.816 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009498/0.3334, allocations: 0.7116 MB / 383.4 MB, free: 8.688 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.3335, allocations: 2.062 kB / 383.4 MB, free: 8.688 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.3335, allocations: 0 / 383.4 MB, free: 8.688 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.338e-06/0.3335, 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.001653/0.3351, allocations: 0.9554 MB / 384.4 MB, free: 8.055 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.3352, allocations: 9.812 kB / 384.4 MB, free: 8.055 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.113e-05/0.3353, allocations: 81.17 kB / 384.5 MB, free: 8.016 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001308/0.3354, allocations: 69.61 kB / 384.5 MB, free: 7.98 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005657/0.336, allocations: 422.6 kB / 385 MB, free: 7.695 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.387e-05/0.3361, allocations: 31.38 kB / 385 MB, free: 7.691 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.851e-05/0.3361, allocations: 42.16 kB / 385 MB, free: 7.691 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007783/0.3369, allocations: 441.3 kB / 385.5 MB, free: 7.543 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.3369, allocations: 7.062 kB / 385.5 MB, free: 7.539 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.151e-05/0.337, allocations: 15.38 kB / 385.5 MB, free: 7.527 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.485e-05/0.337, allocations: 12.42 kB / 385.5 MB, free: 7.527 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006013/0.3376, allocations: 315.6 kB / 385.8 MB, free: 7.418 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002274/0.3399, allocations: 1.689 MB / 387.5 MB, free: 6.266 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000659/0.3406, allocations: 378.5 kB / 387.9 MB, free: 6.078 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003075/0.3409, allocations: 186.1 kB / 388 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.585e-05/0.3409, allocations: 4.75 kB / 388 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004463/0.3414, allocations: 267.1 kB / 388.3 MB, free: 5.844 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 2.064e-06/0.3414, allocations: 0 / 388.3 MB, free: 5.844 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.002226/0.3436, allocations: 1.01 MB / 389.3 MB, free: 5.199 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.484e-05/0.3437, allocations: 190.7 kB / 389.5 MB, free: 4.977 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006939/0.3444, allocations: 0.5017 MB / 390 MB, free: 4.75 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.847e-05/0.3445, allocations: 32.95 kB / 390 MB, free: 4.715 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001927/0.3447, allocations: 258.7 kB / 390.3 MB, free: 4.504 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.733e-05/0.3448, allocations: 133.4 kB / 390.4 MB, free: 4.406 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000124/0.3449, allocations: 72.98 kB / 390.5 MB, free: 4.363 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.646e-05/0.345, allocations: 358.3 kB / 390.8 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002612/0.3453, allocations: 120.5 kB / 391 MB, free: 3.988 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003462/0.3456, allocations: 217.2 kB / 391.2 MB, free: 3.84 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004655/0.3461, allocations: 273.7 kB / 391.4 MB, free: 3.695 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.3461, allocations: 1.094 kB / 391.4 MB, free: 3.695 MB / 318.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008297/0.3469, allocations: 482.6 kB / 391.9 MB, free: 3.457 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.168e-05/0.347, allocations: 6.75 kB / 391.9 MB, free: 3.457 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.347, allocations: 0 / 391.9 MB, free: 3.457 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000555/0.3475, allocations: 164.2 kB / 392.1 MB, free: 3.383 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002289/0.3478, allocations: 44.5 kB / 392.1 MB, free: 3.379 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004883/0.3527, allocations: 6.654 MB / 398.8 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005571/0.3533, allocations: 53.31 kB / 398.8 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.123e-05/0.3533, allocations: 13.47 kB / 398.8 MB, free: 12.86 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.0003875/0.3537, allocations: 188.5 kB / 399 MB, free: 12.71 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.3538, allocations: 53.77 kB / 399.1 MB, free: 12.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001297/0.354, allocations: 65.52 kB / 399.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.179e-06/0.354, allocations: 4.906 kB / 399.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.354, allocations: 128 / 399.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.766e-06/0.354, allocations: 6.062 kB / 399.2 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007531/0.3548, allocations: 0.4892 MB / 399.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.3548, allocations: 3.938 kB / 399.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001541/0.3549, allocations: 33.83 kB / 399.7 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004977/0.3554, allocations: 151.1 kB / 399.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.055e-05/0.3555, allocations: 11.62 kB / 399.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005334/0.3608, allocations: 6.36 MB / 406.2 MB, free: 6.035 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3609, allocations: 0 / 406.2 MB, free: 6.035 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001216/0.3621, allocations: 0.5118 MB / 406.7 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002812/0.3624, allocations: 161.7 kB / 406.9 MB, free: 5.617 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001056/0.3625, allocations: 7.688 kB / 406.9 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003226/0.3628, allocations: 37.48 kB / 406.9 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001878/0.363, allocations: 48.39 kB / 407 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.74e-05/0.3631, allocations: 13.48 kB / 407 MB, free: 5.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006056/0.3637, allocations: 359.6 kB / 407.3 MB, free: 5.43 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3637, allocations: 0 / 407.3 MB, free: 5.43 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009657/0.3647, allocations: 169.9 kB / 407.5 MB, free: 5.398 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.002585/0.3673, allocations: 1.382 MB / 408.9 MB, free: 4.324 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001589/0.3689, allocations: 0.8074 MB / 409.7 MB, free: 3.738 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3689, allocations: 192 / 409.7 MB, free: 3.738 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009278/0.3698, allocations: 0.6622 MB / 410.3 MB, free: 3.191 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007944/0.3706, allocations: 121.6 kB / 410.5 MB, free: 3.141 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007996/0.3786, allocations: 4.255 MB / 414.7 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005276/0.3792, allocations: 0.8617 MB / 415.6 MB, free: 28 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000319/0.3795, allocations: 52.14 kB / 415.6 MB, free: 12 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005301/0.3801, allocations: 196.1 kB / 415.8 MB, free: 15.99 MB / 350.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3801, allocations: 4 kB / 415.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04679/0.4269, allocations: 14.41 MB / 430.2 MB, free: 5.324 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.85/15.27, allocations: 4 kB / 430.2 MB, free: 5.32 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