Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001753/0.001753, allocations: 112.2 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002136/0.002136, allocations: 180.5 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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.Digital.Examples.INV3S,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001599/0.001599, allocations: 51.92 kB / 370.4 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.2663, allocations: 52.18 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.INV3S): time 0.002581/0.2689, allocations: 1.533 MB / 424.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001874/0.2707, allocations: 0.8499 MB / 425 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.945e-05/0.2708, allocations: 8 kB / 425 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.723e-05/0.2709, allocations: 11.86 kB / 425 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.765e-05/0.271, allocations: 23.78 kB / 425 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000251/0.2712, allocations: 51.89 kB / 425.1 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002222/0.2714, allocations: 135.7 kB / 425.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.611e-05/0.2715, allocations: 23.97 kB / 425.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004883/0.272, allocations: 391.2 kB / 425.6 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001415/0.2722, allocations: 67.75 kB / 425.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.461e-05/0.2722, allocations: 8 kB / 425.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.261e-05/0.2722, allocations: 12 kB / 425.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001114/0.2723, allocations: 67.7 kB / 425.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000126/0.2725, allocations: 119.2 kB / 425.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000401/0.2729, allocations: 358.9 kB / 426.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.2729, allocations: 0 / 426.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.2729, allocations: 0 / 426.3 MB, free: 10.95 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.2729, allocations: 7.938 kB / 426.3 MB, free: 10.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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007871/0.2737, allocations: 0.659 MB / 426.9 MB, free: 10.22 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.2737, allocations: 12.03 kB / 426.9 MB, free: 10.21 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.261e-05/0.2738, allocations: 38.75 kB / 427 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.679e-05/0.2738, allocations: 40.7 kB / 427 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002978/0.2741, allocations: 220.8 kB / 427.2 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.26e-05/0.2742, allocations: 8.359 kB / 427.2 MB, free: 9.875 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.56e-05/0.2742, allocations: 8.375 kB / 427.2 MB, free: 9.867 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003021/0.2745, allocations: 121.7 kB / 427.4 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.2745, allocations: 3.984 kB / 427.4 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.253e-05/0.2745, allocations: 8 kB / 427.4 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.2745, allocations: 0 / 427.4 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001435/0.2747, allocations: 55.97 kB / 427.4 MB, free: 9.676 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007148/0.2754, allocations: 431.5 kB / 427.8 MB, free: 9.211 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001813/0.2756, allocations: 78.52 kB / 427.9 MB, free: 9.125 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001386/0.2757, allocations: 60.89 kB / 428 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.199e-05/0.2757, allocations: 0 / 428 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003728/0.2761, allocations: 202.6 kB / 428.2 MB, free: 8.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.884e-06/0.2761, allocations: 4 kB / 428.2 MB, free: 8.836 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008157/0.2769, allocations: 464.1 kB / 428.6 MB, free: 8.352 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001171/0.277, allocations: 166.2 kB / 428.8 MB, free: 8.152 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006607/0.2777, allocations: 0.513 MB / 429.3 MB, free: 7.629 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.382e-05/0.2777, allocations: 29.7 kB / 429.3 MB, free: 7.594 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.869e-05/0.2778, allocations: 105.1 kB / 429.4 MB, free: 7.488 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.337e-05/0.2778, allocations: 31.8 kB / 429.5 MB, free: 7.457 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001098/0.2779, allocations: 73.56 kB / 429.6 MB, free: 7.379 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.2781, allocations: 330.8 kB / 429.9 MB, free: 7.047 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001321/0.2782, allocations: 55.97 kB / 429.9 MB, free: 6.992 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000137/0.2784, allocations: 77.73 kB / 430 MB, free: 6.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000368/0.2787, allocations: 354.4 kB / 430.4 MB, free: 6.512 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.2787, allocations: 112 / 430.4 MB, free: 6.512 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005378/0.2793, allocations: 372.3 kB / 430.7 MB, free: 6.117 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001104/0.2794, allocations: 122.8 kB / 430.8 MB, free: 5.973 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.2794, allocations: 4.031 kB / 430.8 MB, free: 5.969 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.2794, allocations: 7.984 kB / 430.8 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.007e-05/0.2794, allocations: 0 / 430.8 MB, free: 5.961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.2794, allocations: 3.938 kB / 430.8 MB, free: 5.957 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001282/0.2796, allocations: 12 kB / 430.9 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.233e-05/0.2796, allocations: 47.92 kB / 430.9 MB, free: 5.898 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.t_next,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.x,$PRE.iNV3S.inertialDelaySensitive.x,iNV3S.yy,iNV3S.nextstate,x_table.y,e_table.y,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004065/0.28, allocations: 362.2 kB / 431.3 MB, free: 5.512 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.346e-05/0.2801, allocations: 39.77 kB / 431.3 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001054/0.2802, allocations: 67.09 kB / 431.4 MB, free: 5.402 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-05/0.2802, allocations: 4 kB / 431.4 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.356e-06/0.2802, allocations: 0 / 431.4 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.2802, allocations: 0 / 431.4 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001032/0.2812, allocations: 0.7812 MB / 432.2 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2812, allocations: 3.938 kB / 432.2 MB, free: 4.539 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.107e-06/0.2812, allocations: 0 / 432.2 MB, free: 4.539 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.2813, allocations: 4 kB / 432.2 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.851e-05/0.2813, allocations: 15.98 kB / 432.2 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.2813, allocations: 0 / 432.2 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.2813, allocations: 7.938 kB / 432.2 MB, free: 4.512 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006737/0.282, allocations: 0.5254 MB / 432.7 MB, free: 3.945 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003795/0.2823, allocations: 201.4 kB / 432.9 MB, free: 3.75 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.517e-05/0.2824, allocations: 12 kB / 432.9 MB, free: 3.738 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001353/0.2825, allocations: 11.98 kB / 432.9 MB, free: 3.727 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.2826, allocations: 27.91 kB / 433 MB, free: 3.699 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.446e-05/0.2827, allocations: 44.12 kB / 433 MB, free: 3.656 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004879/0.2832, allocations: 390.9 kB / 433.4 MB, free: 3.273 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2832, allocations: 0 / 433.4 MB, free: 3.273 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002865/0.2835, allocations: 44 kB / 433.4 MB, free: 3.23 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: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,iNV3S.inertialDelaySensitive.x,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.y_old,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,iNV3S.yy,iNV3S.nextstate,iNV3S.inertialDelaySensitive.y,iNV3S.inertialDelaySensitive.y_auxiliary,iNV3S.inertialDelaySensitive.t_next,iNV3S.inertialDelaySensitive.delayTime,iNV3S.inertialDelaySensitive.lh,iNV3S.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,iNV3S.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001092/0.2845, allocations: 1.082 MB / 434.5 MB, free: 2.098 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005101/0.2851, allocations: 388.3 kB / 434.9 MB, free: 1.672 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2851, allocations: 0 / 434.9 MB, free: 1.672 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003081/0.2854, allocations: 297.6 kB / 435.2 MB, free: 1.332 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006324/0.286, allocations: 133.8 kB / 435.3 MB, free: 1.215 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003648/0.2896, allocations: 2.755 MB / 438.1 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005134/0.2902, allocations: 0.8099 MB / 438.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.537e-05/0.2902, allocations: 4.672 kB / 438.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.804e-05/0.2903, allocations: 23.44 kB / 438.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of SimCode: time 6.72e-07/0.2903, allocations: 0 / 438.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03362/0.3239, allocations: 6.082 MB / 445 MB, free: 7.504 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.28, allocations: 8 kB / 445 MB, free: 7.496 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00239569 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_INV3S.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/INV3S/INV3S.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable iNV3S.y in file Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S_res.csv. Warning: Get data of variable iNV3S.y from file Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.83519966500171]