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.001581/0.001581, allocations: 112.3 kB / 17.06 MB, free: 5.992 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.001567/0.001567, allocations: 197.3 kB / 18.01 MB, free: 5.066 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.416/1.416, allocations: 222.9 MB / 241.7 MB, free: 15.12 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001562/0.001562, allocations: 47.92 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2857/0.2872, allocations: 49.44 MB / 400.2 MB, free: 8.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.006241/0.2935, allocations: 3.968 MB / 404.2 MB, free: 4.816 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002859/0.2964, allocations: 1.426 MB / 405.6 MB, free: 3.383 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004493/0.2969, allocations: 7.938 kB / 405.6 MB, free: 3.375 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008838/0.2978, allocations: 250.8 kB / 405.9 MB, free: 3.129 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007688/0.2986, allocations: 258.3 kB / 406.1 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007841/0.2994, allocations: 289.3 kB / 406.4 MB, free: 2.594 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008349/0.3003, allocations: 0.7124 MB / 407.1 MB, free: 1.879 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003015/0.3006, allocations: 160.9 kB / 407.3 MB, free: 1.715 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003607/0.3009, allocations: 279 kB / 407.6 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003828/0.3013, allocations: 298.8 kB / 407.9 MB, free: 1.148 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.746e-05/0.3014, allocations: 56 kB / 407.9 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002334/0.3017, allocations: 91.97 kB / 408 MB, free: 1.004 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001683/0.3019, allocations: 151.4 kB / 408.2 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002968/0.3022, allocations: 298.4 kB / 408.4 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008863/0.3031, allocations: 0.7109 MB / 409.2 MB, free: 15.85 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.3031, allocations: 0 / 409.2 MB, free: 15.85 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.917e-06/0.3031, allocations: 4 kB / 409.2 MB, free: 15.85 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.989e-06/0.3031, allocations: 0 / 409.2 MB, free: 15.85 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.001741/0.3048, allocations: 0.9486 MB / 410.1 MB, free: 14.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.3049, allocations: 12.03 kB / 410.1 MB, free: 14.83 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001024/0.305, allocations: 82.7 kB / 410.2 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001154/0.3051, allocations: 72.45 kB / 410.3 MB, free: 14.67 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005656/0.3057, allocations: 427.1 kB / 410.7 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.519e-05/0.3057, allocations: 29.38 kB / 410.7 MB, free: 14.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.004e-05/0.3058, allocations: 39.94 kB / 410.8 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007765/0.3066, allocations: 441.5 kB / 411.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.3066, allocations: 0 / 411.2 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.1e-05/0.3067, allocations: 20 kB / 411.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.3067, allocations: 8 kB / 411.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006495/0.3073, allocations: 315.8 kB / 411.5 MB, free: 13.35 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002524/0.3099, allocations: 1.703 MB / 413.2 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007631/0.3107, allocations: 370.9 kB / 413.6 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003452/0.311, allocations: 181.4 kB / 413.8 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.272e-05/0.3111, allocations: 4 kB / 413.8 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005013/0.3116, allocations: 262.4 kB / 414 MB, free: 10.7 MB / 334.1 MB Notification: Performance of pre-optimization done (n=40): time 4.018e-06/0.3116, allocations: 7.984 kB / 414 MB, free: 10.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002358/0.314, allocations: 1.014 MB / 415 MB, free: 9.59 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001524/0.3141, allocations: 191.9 kB / 415.2 MB, free: 9.359 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006895/0.3148, allocations: 0.5017 MB / 415.7 MB, free: 8.852 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.007e-05/0.3149, allocations: 37.7 kB / 415.8 MB, free: 8.809 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002637/0.3151, allocations: 248.8 kB / 416 MB, free: 8.559 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001171/0.3153, allocations: 130.9 kB / 416.1 MB, free: 8.43 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002123/0.3155, allocations: 78.12 kB / 416.2 MB, free: 8.348 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001984/0.3157, allocations: 358.8 kB / 416.6 MB, free: 7.988 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002621/0.316, allocations: 120.8 kB / 416.7 MB, free: 7.871 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003855/0.3164, allocations: 217.2 kB / 416.9 MB, free: 7.621 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000502/0.3169, allocations: 265.4 kB / 417.2 MB, free: 7.352 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.594e-06/0.3169, allocations: 0 / 417.2 MB, free: 7.352 MB / 334.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0008394/0.3177, allocations: 481 kB / 417.6 MB, free: 6.863 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/0.3178, allocations: 11.98 kB / 417.6 MB, free: 6.852 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.3178, allocations: 4.094 kB / 417.6 MB, free: 6.848 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005193/0.3183, allocations: 151.3 kB / 417.8 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002215/0.3185, allocations: 47.84 kB / 417.8 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006194/0.3247, allocations: 6.651 MB / 424.5 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004568/0.3252, allocations: 63.78 kB / 424.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.098e-05/0.3253, allocations: 12 kB / 424.6 MB, free: 15.36 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.0003295/0.3256, allocations: 184.1 kB / 424.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.624e-05/0.3257, allocations: 59.59 kB / 424.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001157/0.3258, allocations: 64.75 kB / 424.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.3258, allocations: 4 kB / 424.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.3258, allocations: 4 kB / 424.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.3259, allocations: 128 / 424.9 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005786/0.3264, allocations: 0.4894 MB / 425.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.3265, allocations: 0 / 425.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001457/0.3266, allocations: 35.86 kB / 425.4 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004617/0.3271, allocations: 151.3 kB / 425.5 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.071e-05/0.3271, allocations: 8 kB / 425.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006058/0.3332, allocations: 6.356 MB / 431.9 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.979e-06/0.3332, allocations: 7.875 kB / 431.9 MB, free: 7.383 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001139/0.3344, allocations: 0.5079 MB / 432.4 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002064/0.3346, allocations: 160.7 kB / 432.6 MB, free: 6.668 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.455e-05/0.3347, allocations: 8 kB / 432.6 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000289/0.335, allocations: 35.97 kB / 432.6 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001628/0.3351, allocations: 55.92 kB / 432.7 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.161e-05/0.3352, allocations: 8 kB / 432.7 MB, free: 6.562 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004919/0.3357, allocations: 359.1 kB / 433 MB, free: 6.211 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3357, allocations: 0 / 433 MB, free: 6.211 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008176/0.3365, allocations: 175.8 kB / 433.2 MB, free: 6.039 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.002833/0.3393, allocations: 1.375 MB / 434.6 MB, free: 4.781 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001289/0.3406, allocations: 0.8108 MB / 435.4 MB, free: 3.918 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3407, allocations: 0 / 435.4 MB, free: 3.918 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007879/0.3415, allocations: 0.6586 MB / 436.1 MB, free: 3.207 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007278/0.3422, allocations: 127.4 kB / 436.2 MB, free: 3.086 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006648/0.3489, allocations: 4.248 MB / 440.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005624/0.3494, allocations: 0.8634 MB / 441.3 MB, free: 13.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002421/0.3497, allocations: 56.14 kB / 441.3 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002455/0.35, allocations: 171.4 kB / 441.5 MB, free: 13.6 MB / 366.1 MB Notification: Performance of SimCode: time 7.91e-07/0.35, allocations: 0 / 441.5 MB, free: 13.6 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05097/0.4009, allocations: 14.4 MB / 455.9 MB, free: 15.45 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.28/12.68, allocations: 11.33 kB / 455.9 MB, free: 15.45 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_CharacteristicThyristors_fmu --startTime=0 --stopTime=6 --timeout=50 --tolerance=1e-06 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.mat","/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