Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.INV3S,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_INV3S",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001075/0.001075, allocations: 103.8 kB / 17.63 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00115/0.00115, allocations: 206.4 kB / 18.58 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.403/1.403, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 62.03 kB / 307 MB, free: 0.5586 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.1094, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.INV3S): time 0.003373/0.1129, allocations: 1.521 MB / 359.1 MB, free: 12.49 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002227/0.1151, allocations: 0.8826 MB / 360 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001094/0.1153, allocations: 4 kB / 360 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001089/0.1154, allocations: 7.922 kB / 360 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001247/0.1156, allocations: 27.78 kB / 360 MB, free: 11.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003885/0.116, allocations: 43.89 kB / 360.1 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003321/0.1163, allocations: 143.7 kB / 360.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000162/0.1165, allocations: 27.98 kB / 360.2 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006403/0.1171, allocations: 383.3 kB / 360.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002181/0.1174, allocations: 63.77 kB / 360.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.846e-05/0.1174, allocations: 8 kB / 360.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.946e-05/0.1175, allocations: 11.94 kB / 360.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001597/0.1177, allocations: 63.77 kB / 360.8 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002021/0.1179, allocations: 115.2 kB / 360.9 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005419/0.1184, allocations: 350.8 kB / 361.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.1184, allocations: 3.984 kB / 361.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.1185, allocations: 0 / 361.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.289e-05/0.1185, allocations: 0 / 361.2 MB, free: 10.37 MB / 302.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.001045/0.1195, allocations: 0.7308 MB / 361.9 MB, free: 9.566 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.1196, allocations: 15.97 kB / 362 MB, free: 9.551 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.938e-05/0.1197, allocations: 34.75 kB / 362 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.794e-05/0.1198, allocations: 44.41 kB / 362 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003035/0.1201, allocations: 270.3 kB / 362.3 MB, free: 9.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.115e-05/0.1201, allocations: 8.375 kB / 362.3 MB, free: 9.152 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.538e-05/0.1201, allocations: 12.38 kB / 362.3 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003046/0.1204, allocations: 129.7 kB / 362.4 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.1205, allocations: 3.984 kB / 362.4 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.391e-05/0.1205, allocations: 4 kB / 362.5 MB, free: 9 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.1205, allocations: 3.938 kB / 362.5 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001383/0.1206, allocations: 55.97 kB / 362.5 MB, free: 8.941 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007065/0.1214, allocations: 460.6 kB / 363 MB, free: 8.441 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001865/0.1216, allocations: 98.48 kB / 363.1 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001528/0.1217, allocations: 80.89 kB / 363.1 MB, free: 8.254 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.754e-06/0.1217, allocations: 0 / 363.1 MB, free: 8.254 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000374/0.1221, allocations: 202.7 kB / 363.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.763e-06/0.1221, allocations: 4 kB / 363.3 MB, free: 8.027 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007805/0.1229, allocations: 471.9 kB / 363.8 MB, free: 7.535 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.796e-05/0.123, allocations: 166.2 kB / 364 MB, free: 7.336 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006782/0.1237, allocations: 0.5129 MB / 364.5 MB, free: 6.812 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.967e-05/0.1238, allocations: 33.7 kB / 364.5 MB, free: 6.773 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.655e-05/0.1238, allocations: 97.12 kB / 364.6 MB, free: 6.676 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.626e-05/0.1239, allocations: 27.66 kB / 364.6 MB, free: 6.648 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001076/0.124, allocations: 85.31 kB / 364.7 MB, free: 6.559 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.1241, allocations: 334.8 kB / 365 MB, free: 6.223 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001341/0.1242, allocations: 55.97 kB / 365.1 MB, free: 6.168 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001284/0.1244, allocations: 76.02 kB / 365.2 MB, free: 6.09 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003371/0.1247, allocations: 342.9 kB / 365.5 MB, free: 5.703 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.1247, allocations: 0 / 365.5 MB, free: 5.703 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005249/0.1253, allocations: 376.3 kB / 365.9 MB, free: 5.305 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.753e-05/0.1254, allocations: 126.8 kB / 366 MB, free: 5.156 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.1254, allocations: 8.016 kB / 366 MB, free: 5.148 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.1254, allocations: 4.109 kB / 366 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.03e-05/0.1254, allocations: 3.938 kB / 366 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.1254, allocations: 0 / 366 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001345/0.1256, allocations: 8 kB / 366 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.584e-05/0.1256, allocations: 43.98 kB / 366.1 MB, free: 5.09 MB / 302.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.0003329/0.126, allocations: 370.2 kB / 366.4 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.209e-05/0.126, allocations: 39.66 kB / 366.5 MB, free: 4.652 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001074/0.1262, allocations: 67.16 kB / 366.5 MB, free: 4.578 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.327e-06/0.1262, allocations: 4 kB / 366.5 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.1262, allocations: 0 / 366.5 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-06/0.1262, allocations: 0 / 366.5 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009259/0.1271, allocations: 0.8171 MB / 367.3 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1271, allocations: 3.938 kB / 367.4 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.404e-06/0.1271, allocations: 4 kB / 367.4 MB, free: 3.668 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.117e-06/0.1272, allocations: 3.984 kB / 367.4 MB, free: 3.664 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.601e-05/0.1272, allocations: 8 kB / 367.4 MB, free: 3.656 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.1272, allocations: 0 / 367.4 MB, free: 3.656 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.007e-05/0.1272, allocations: 7.938 kB / 367.4 MB, free: 3.648 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006174/0.1278, allocations: 0.5329 MB / 367.9 MB, free: 3.074 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002933/0.1281, allocations: 236.5 kB / 368.1 MB, free: 2.824 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.816e-05/0.1282, allocations: 12 kB / 368.2 MB, free: 2.812 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001322/0.1283, allocations: 11.98 kB / 368.2 MB, free: 2.801 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001041/0.1285, allocations: 27.91 kB / 368.2 MB, free: 2.773 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.893e-05/0.1285, allocations: 47.94 kB / 368.2 MB, free: 2.727 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004926/0.129, allocations: 394.9 kB / 368.6 MB, free: 2.344 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.129, allocations: 0 / 368.6 MB, free: 2.344 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003037/0.1293, allocations: 43.94 kB / 368.7 MB, free: 2.301 MB / 302.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.0009737/0.1303, allocations: 1.074 MB / 369.7 MB, free: 1.176 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005199/0.1309, allocations: 441.5 kB / 370.2 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.948e-06/0.1309, allocations: 4 kB / 370.2 MB, free: 0.6914 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003501/0.1312, allocations: 373.6 kB / 370.5 MB, free: 284 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006285/0.1319, allocations: 127.1 kB / 370.7 MB, free: 168 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1619/0.2938, allocations: 2.737 MB / 373.4 MB, free: 19.11 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000409/0.2943, allocations: 0.8023 MB / 374.2 MB, free: 18.39 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.944e-05/0.2944, allocations: 9.484 kB / 374.2 MB, free: 18.39 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.978e-05/0.2944, allocations: 27.77 kB / 374.2 MB, free: 18.38 MB / 302.1 MB Notification: Performance of SimCode: time 1.263e-06/0.2945, allocations: 1.812 kB / 374.2 MB, free: 18.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02537/0.3198, allocations: 5.879 MB / 380.1 MB, free: 17.67 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.75/8.07, allocations: 13.22 kB / 380.1 MB, free: 17.66 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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.0048 Modelica_trunk_Modelica_Electrical_Digital_Examples_INV3S.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Digital.Examples.INV3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches