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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,fileNamePrefix="Modelica_4_0_0_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.001344/0.001344, allocations: 114.8 kB / 17.06 MB, free: 5.777 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.001316/0.001316, allocations: 193.3 kB / 18 MB, free: 4.918 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.412/1.412, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 51.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3093/0.3108, allocations: 49.44 MB / 400.2 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.005562/0.3164, allocations: 3.957 MB / 404.2 MB, free: 4.848 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002589/0.3191, allocations: 1.433 MB / 405.6 MB, free: 3.406 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002306/0.3193, allocations: 11.94 kB / 405.7 MB, free: 3.395 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007398/0.3201, allocations: 242.8 kB / 405.9 MB, free: 3.156 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005514/0.3206, allocations: 254.3 kB / 406.1 MB, free: 2.906 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000647/0.3213, allocations: 293.3 kB / 406.4 MB, free: 2.625 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008403/0.3222, allocations: 0.7163 MB / 407.1 MB, free: 1.906 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002848/0.3225, allocations: 164.9 kB / 407.3 MB, free: 1.738 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003731/0.3228, allocations: 267 kB / 407.6 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003749/0.3232, allocations: 302.7 kB / 407.9 MB, free: 1.18 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.414e-05/0.3233, allocations: 52 kB / 407.9 MB, free: 1.129 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000227/0.3235, allocations: 104 kB / 408 MB, free: 1.027 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001719/0.3237, allocations: 143.5 kB / 408.1 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003026/0.324, allocations: 306.5 kB / 408.4 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008353/0.3249, allocations: 0.7031 MB / 409.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.3249, allocations: 3.938 kB / 409.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.534e-06/0.3249, allocations: 0 / 409.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.304e-05/0.3249, allocations: 0 / 409.2 MB, free: 15.88 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.001724/0.3266, allocations: 0.9563 MB / 410.1 MB, free: 14.86 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.3267, allocations: 12.03 kB / 410.1 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.135e-05/0.3268, allocations: 82.7 kB / 410.2 MB, free: 14.76 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001194/0.3269, allocations: 72.45 kB / 410.3 MB, free: 14.69 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005672/0.3275, allocations: 419.1 kB / 410.7 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.481e-05/0.3275, allocations: 29.38 kB / 410.7 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.938e-05/0.3276, allocations: 47.94 kB / 410.8 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007685/0.3284, allocations: 437.5 kB / 411.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.3284, allocations: 0 / 411.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.241e-05/0.3284, allocations: 19.98 kB / 411.2 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.3285, allocations: 12 kB / 411.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006277/0.3291, allocations: 311.8 kB / 411.5 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002659/0.3318, allocations: 1.707 MB / 413.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008791/0.3327, allocations: 362.9 kB / 413.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003415/0.333, allocations: 181.4 kB / 413.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.884e-05/0.3331, allocations: 4 kB / 413.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004831/0.3336, allocations: 262.4 kB / 414 MB, free: 10.73 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 3.637e-06/0.3336, allocations: 0 / 414 MB, free: 10.73 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002374/0.336, allocations: 1.018 MB / 415 MB, free: 9.625 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001448/0.3361, allocations: 195.8 kB / 415.2 MB, free: 9.391 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000634/0.3368, allocations: 0.5017 MB / 415.7 MB, free: 8.883 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.635e-05/0.3368, allocations: 29.7 kB / 415.8 MB, free: 8.848 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002438/0.3371, allocations: 260.8 kB / 416 MB, free: 8.586 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001194/0.3372, allocations: 130.9 kB / 416.1 MB, free: 8.457 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/0.3373, allocations: 74.12 kB / 416.2 MB, free: 8.379 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.3375, allocations: 358.8 kB / 416.6 MB, free: 8.02 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002862/0.3378, allocations: 124.8 kB / 416.7 MB, free: 7.898 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003447/0.3382, allocations: 213.3 kB / 416.9 MB, free: 7.652 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000499/0.3387, allocations: 265.3 kB / 417.2 MB, free: 7.383 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3387, allocations: 4 kB / 417.2 MB, free: 7.379 MB / 334.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008667/0.3396, allocations: 484.9 kB / 417.6 MB, free: 6.887 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.3396, allocations: 8.094 kB / 417.6 MB, free: 6.879 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.408e-06/0.3396, allocations: 4 kB / 417.6 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006083/0.3402, allocations: 155.3 kB / 417.8 MB, free: 6.711 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002253/0.3404, allocations: 47.84 kB / 417.8 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006052/0.3465, allocations: 6.647 MB / 424.5 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004534/0.347, allocations: 56.09 kB / 424.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.968e-05/0.347, allocations: 15.98 kB / 424.6 MB, free: 15.39 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.0003072/0.3473, allocations: 196.3 kB / 424.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.72e-05/0.3474, allocations: 55.61 kB / 424.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001153/0.3476, allocations: 64.75 kB / 424.9 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.3476, allocations: 4 kB / 424.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3476, allocations: 4 kB / 424.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.3476, allocations: 0 / 424.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005791/0.3482, allocations: 493.2 kB / 425.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.3482, allocations: 0 / 425.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001363/0.3483, allocations: 31.97 kB / 425.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004422/0.3488, allocations: 159.2 kB / 425.5 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.646e-05/0.3488, allocations: 8 kB / 425.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005516/0.3543, allocations: 6.356 MB / 431.9 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.526e-06/0.3544, allocations: 11.94 kB / 431.9 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.3554, allocations: 0.5075 MB / 432.4 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002048/0.3557, allocations: 160.6 kB / 432.6 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.219e-05/0.3557, allocations: 12 kB / 432.6 MB, free: 6.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002784/0.356, allocations: 31.97 kB / 432.6 MB, free: 6.648 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001544/0.3562, allocations: 55.86 kB / 432.7 MB, free: 6.594 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-05/0.3562, allocations: 12 kB / 432.7 MB, free: 6.582 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004761/0.3567, allocations: 359.1 kB / 433 MB, free: 6.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3567, allocations: 0 / 433 MB, free: 6.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008026/0.3575, allocations: 171.8 kB / 433.2 MB, free: 6.062 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.002817/0.3603, allocations: 1.374 MB / 434.6 MB, free: 4.801 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001368/0.3617, allocations: 0.8108 MB / 435.4 MB, free: 3.938 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/0.3617, allocations: 4 kB / 435.4 MB, free: 3.934 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008243/0.3626, allocations: 0.6547 MB / 436.1 MB, free: 3.227 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006154/0.3632, allocations: 121.4 kB / 436.2 MB, free: 3.117 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006965/0.3702, allocations: 4.248 MB / 440.4 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005912/0.3708, allocations: 0.8634 MB / 441.3 MB, free: 13.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002459/0.3711, allocations: 56.14 kB / 441.3 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002578/0.3713, allocations: 167.4 kB / 441.5 MB, free: 13.63 MB / 366.1 MB Notification: Performance of SimCode: time 4.078e-06/0.3714, allocations: 0 / 441.5 MB, free: 13.63 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05033/0.4217, allocations: 14.4 MB / 455.9 MB, free: 15.48 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.51/12.93, allocations: 12.61 kB / 455.9 MB, free: 15.46 MB / 382.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins1/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