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.0009121/0.0009121, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001025/0.001025, allocations: 157 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.9122/0.9122, allocations: 173.4 MB / 200.5 MB, free: 9.41 MB / 186.7 MB " [Timeout remaining time 179] 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 1.493e-06/1.493e-06, allocations: 0 / 318.4 MB, free: 6.223 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.143e-05/1.293e-05, allocations: 6.281 kB / 318.4 MB, free: 6.215 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.INV3S): time 0.001787/0.0018, allocations: 1.471 MB / 319.9 MB, free: 4.73 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001391/0.003191, allocations: 0.7992 MB / 320.7 MB, free: 3.926 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.588e-05/0.003247, allocations: 0 / 320.7 MB, free: 3.926 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.623e-05/0.003343, allocations: 15.86 kB / 320.7 MB, free: 3.91 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 8.859e-05/0.003431, allocations: 19.84 kB / 320.7 MB, free: 3.891 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003053/0.003737, allocations: 59.56 kB / 320.8 MB, free: 3.836 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001869/0.003924, allocations: 139.6 kB / 320.9 MB, free: 3.699 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001159/0.004039, allocations: 15.92 kB / 320.9 MB, free: 3.684 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003565/0.004396, allocations: 423.2 kB / 321.4 MB, free: 3.27 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.608e-05/0.004492, allocations: 55.88 kB / 321.4 MB, free: 3.215 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.826e-05/0.00452, allocations: 15.94 kB / 321.4 MB, free: 3.199 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.025e-05/0.004541, allocations: 12 kB / 321.4 MB, free: 3.188 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 6.923e-05/0.00461, allocations: 59.78 kB / 321.5 MB, free: 3.129 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.897e-05/0.004679, allocations: 59.72 kB / 321.6 MB, free: 3.07 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002581/0.004937, allocations: 366.8 kB / 321.9 MB, free: 2.711 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.814e-06/0.004939, allocations: 0 / 321.9 MB, free: 2.711 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.71e-07/0.004939, allocations: 0 / 321.9 MB, free: 2.711 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.004944, allocations: 0 / 321.9 MB, free: 2.711 MB / 282.7 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.0008316/0.005776, allocations: 0.6583 MB / 322.6 MB, free: 2 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.601e-05/0.005812, allocations: 12.92 kB / 322.6 MB, free: 1.988 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.204e-05/0.005844, allocations: 38.75 kB / 322.6 MB, free: 1.941 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.559e-05/0.005889, allocations: 36.7 kB / 322.7 MB, free: 1.906 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001941/0.006083, allocations: 220.1 kB / 322.9 MB, free: 1.664 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.676e-05/0.0061, allocations: 8.375 kB / 322.9 MB, free: 1.656 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.648e-05/0.006117, allocations: 8.375 kB / 322.9 MB, free: 1.648 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002566/0.006373, allocations: 241 kB / 323.1 MB, free: 1.383 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.587e-06/0.006382, allocations: 4.125 kB / 323.1 MB, free: 1.379 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.698e-05/0.006399, allocations: 8.125 kB / 323.1 MB, free: 1.371 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.006403, allocations: 0 / 323.1 MB, free: 1.371 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001243/0.006527, allocations: 178.8 kB / 323.3 MB, free: 1.172 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004491/0.006976, allocations: 415.7 kB / 323.7 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001544/0.007131, allocations: 197.2 kB / 323.9 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001121/0.007243, allocations: 183.7 kB / 324.1 MB, free: 296 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.145e-06/0.007251, allocations: 0 / 324.1 MB, free: 296 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002695/0.00752, allocations: 317.5 kB / 324.4 MB, free: 15.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.263e-06/0.007521, allocations: 0 / 324.4 MB, free: 15.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006027/0.008124, allocations: 0.7009 MB / 325.1 MB, free: 15.15 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.25e-05/0.008197, allocations: 170.2 kB / 325.3 MB, free: 14.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004258/0.008622, allocations: 0.513 MB / 325.8 MB, free: 14.43 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.4e-05/0.008646, allocations: 29.7 kB / 325.8 MB, free: 14.39 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.415e-05/0.008711, allocations: 109.1 kB / 325.9 MB, free: 14.28 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.88e-05/0.008739, allocations: 23.86 kB / 325.9 MB, free: 14.26 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.502e-05/0.008824, allocations: 81.5 kB / 326 MB, free: 14.17 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.878e-05/0.008913, allocations: 322.8 kB / 326.3 MB, free: 13.85 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/0.009035, allocations: 174.8 kB / 326.5 MB, free: 13.65 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001284/0.009164, allocations: 199.7 kB / 326.7 MB, free: 13.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002324/0.009396, allocations: 359.5 kB / 327.1 MB, free: 13.02 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.009398, allocations: 3.938 kB / 327.1 MB, free: 13.02 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003833/0.009782, allocations: 0.4952 MB / 327.6 MB, free: 12.47 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.653e-05/0.009848, allocations: 134.8 kB / 327.7 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.009854, allocations: 0 / 327.7 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.009869, allocations: 4 kB / 327.7 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.028e-05/0.009889, allocations: 0 / 327.7 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.009895, allocations: 0 / 327.7 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.469e-05/0.009989, allocations: 15.92 kB / 327.7 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.827e-05/0.01003, allocations: 40 kB / 327.7 MB, free: 12.25 MB / 298.7 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.0002445/0.01027, allocations: 366.5 kB / 328.1 MB, free: 11.86 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.447e-05/0.01031, allocations: 43.77 kB / 328.1 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.037e-05/0.01038, allocations: 67.08 kB / 328.2 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.01038, allocations: 3.984 kB / 328.2 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.01038, allocations: 128 / 328.2 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.01039, allocations: 4 kB / 328.2 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009247/0.01131, allocations: 0.897 MB / 329.1 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.01132, allocations: 3.984 kB / 329.1 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.747e-06/0.01132, allocations: 0 / 329.1 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.01132, allocations: 4 kB / 329.1 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.724e-05/0.01134, allocations: 8 kB / 329.1 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.01134, allocations: 0 / 329.1 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.01134, allocations: 0 / 329.1 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000429/0.01177, allocations: 0.6686 MB / 329.8 MB, free: 9.988 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002278/0.012, allocations: 205.4 kB / 330 MB, free: 9.789 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.014e-05/0.01203, allocations: 4 kB / 330 MB, free: 9.785 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.86e-05/0.01211, allocations: 16 kB / 330 MB, free: 9.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.909e-05/0.01219, allocations: 19.97 kB / 330 MB, free: 9.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.364e-05/0.01222, allocations: 51.92 kB / 330.1 MB, free: 9.699 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002838/0.01251, allocations: 386.9 kB / 330.5 MB, free: 9.32 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01251, allocations: 0 / 330.5 MB, free: 9.32 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001849/0.01269, allocations: 47.89 kB / 330.5 MB, free: 9.273 MB / 298.7 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.0006413/0.01333, allocations: 1.206 MB / 331.7 MB, free: 7.992 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004002/0.01373, allocations: 0.6163 MB / 332.3 MB, free: 7.277 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.01373, allocations: 4 kB / 332.3 MB, free: 7.273 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002142/0.01395, allocations: 420.4 kB / 332.8 MB, free: 6.789 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003875/0.01434, allocations: 124.1 kB / 332.9 MB, free: 6.676 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002825/0.01716, allocations: 3.369 MB / 336.2 MB, free: 3.074 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001753/0.01734, allocations: 197.8 kB / 336.4 MB, free: 2.859 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.269e-05/0.01737, allocations: 8.719 kB / 336.4 MB, free: 2.852 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.615e-05/0.01741, allocations: 28.48 kB / 336.5 MB, free: 2.824 MB / 298.7 MB Notification: Performance of SimCode: time 1.032e-06/0.01742, allocations: 4 kB / 336.5 MB, free: 2.82 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01915/0.03657, allocations: 7.05 MB / 343.5 MB, free: 11.89 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.002/7.038, allocations: 4 kB / 343.5 MB, free: 11.88 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/INV3S/INV3S.csv","/var/lib/jenkins/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: 8.865798944607377]