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) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001506/0.001506, allocations: 114.6 kB / 16.63 MB, free: 6.816 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.001661/0.001662, allocations: 189.8 kB / 17.55 MB, free: 5.93 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.4/1.4, allocations: 222.9 MB / 241.2 MB, free: 15.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001134, allocations: 43.09 kB / 300.2 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1326/0.1338, allocations: 49.45 MB / 349.7 MB, free: 4.648 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.INV3S): time 0.004706/0.1386, allocations: 1.564 MB / 351.2 MB, free: 3.07 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002599/0.1412, allocations: 0.8459 MB / 352.1 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.171e-05/0.1413, allocations: 0 / 352.1 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001288/0.1414, allocations: 7.922 kB / 352.1 MB, free: 2.211 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001116/0.1416, allocations: 15.88 kB / 352.1 MB, free: 2.195 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003439/0.142, allocations: 49.7 kB / 352.2 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002962/0.1423, allocations: 147.7 kB / 352.3 MB, free: 2.004 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.1424, allocations: 23.98 kB / 352.3 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006405/0.1431, allocations: 387.3 kB / 352.7 MB, free: 1.602 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001911/0.1433, allocations: 75.69 kB / 352.8 MB, free: 1.527 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.287e-05/0.1433, allocations: 8 kB / 352.8 MB, free: 1.52 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.834e-05/0.1434, allocations: 12 kB / 352.8 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001116/0.1435, allocations: 63.7 kB / 352.9 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001483/0.1437, allocations: 111.2 kB / 353 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004079/0.1441, allocations: 358.7 kB / 353.3 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.1441, allocations: 4 kB / 353.3 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.1441, allocations: 0 / 353.3 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.338e-05/0.1441, allocations: 0 / 353.3 MB, free: 0.9805 MB / 286.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.001015/0.1451, allocations: 0.723 MB / 354.1 MB, free: 188 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.1452, allocations: 8.031 kB / 354.1 MB, free: 180 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.417e-05/0.1453, allocations: 42.73 kB / 354.1 MB, free: 128 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.371e-05/0.1454, allocations: 40.47 kB / 354.1 MB, free: 88 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003445/0.1457, allocations: 270.3 kB / 354.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.659e-05/0.1458, allocations: 8.312 kB / 354.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.437e-05/0.1458, allocations: 20.3 kB / 354.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003279/0.1461, allocations: 125.7 kB / 354.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.1461, allocations: 0 / 354.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.69e-05/0.1462, allocations: 8 kB / 354.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.285e-06/0.1462, allocations: 0 / 354.6 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001495/0.1464, allocations: 67.92 kB / 354.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007702/0.1471, allocations: 456.5 kB / 355.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002096/0.1474, allocations: 102.5 kB / 355.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001616/0.1475, allocations: 84.88 kB / 355.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.179e-05/0.1476, allocations: 0 / 355.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004107/0.148, allocations: 198.7 kB / 355.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 2.134e-06/0.148, allocations: 0 / 355.5 MB, free: 14.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008533/0.1488, allocations: 471.3 kB / 355.9 MB, free: 14.15 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.865e-05/0.149, allocations: 166.2 kB / 356.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006986/0.1497, allocations: 0.5246 MB / 356.6 MB, free: 13.42 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.86e-05/0.1497, allocations: 29.7 kB / 356.6 MB, free: 13.39 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.849e-05/0.1498, allocations: 101.1 kB / 356.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.305e-05/0.1498, allocations: 27.64 kB / 356.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001439/0.15, allocations: 81.33 kB / 356.8 MB, free: 13.17 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.1501, allocations: 326.8 kB / 357.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001297/0.1503, allocations: 55.97 kB / 357.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001375/0.1504, allocations: 81.61 kB / 357.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003602/0.1508, allocations: 339.3 kB / 357.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1508, allocations: 0 / 357.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005854/0.1514, allocations: 380.2 kB / 358 MB, free: 11.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.363e-05/0.1515, allocations: 118.8 kB / 358.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.947e-06/0.1515, allocations: 4.125 kB / 358.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.1515, allocations: 0 / 358.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.408e-05/0.1516, allocations: 4 kB / 358.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.633e-06/0.1516, allocations: 0 / 358.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001734/0.1517, allocations: 24.02 kB / 358.1 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.052e-05/0.1518, allocations: 36.11 kB / 358.2 MB, free: 11.71 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.0003594/0.1522, allocations: 370.2 kB / 358.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.397e-05/0.1523, allocations: 39.53 kB / 358.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001063/0.1524, allocations: 67.14 kB / 358.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.1524, allocations: 0 / 358.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.1524, allocations: 0 / 358.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.1524, allocations: 0 / 358.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009799/0.1534, allocations: 0.8134 MB / 359.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1534, allocations: 0 / 359.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.242e-06/0.1534, allocations: 0 / 359.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.1534, allocations: 3.938 kB / 359.5 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.474e-05/0.1535, allocations: 15.98 kB / 359.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.1535, allocations: 4 kB / 359.5 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.1535, allocations: 3.938 kB / 359.5 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006659/0.1541, allocations: 0.5363 MB / 360 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003055/0.1545, allocations: 244.5 kB / 360.3 MB, free: 9.445 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.057e-05/0.1545, allocations: 12 kB / 360.3 MB, free: 9.434 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001442/0.1547, allocations: 11.94 kB / 360.3 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001232/0.1548, allocations: 31.91 kB / 360.3 MB, free: 9.391 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.272e-05/0.1549, allocations: 43.92 kB / 360.4 MB, free: 9.348 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004823/0.1554, allocations: 386.9 kB / 360.7 MB, free: 8.969 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1554, allocations: 0 / 360.7 MB, free: 8.969 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003026/0.1557, allocations: 44 kB / 360.8 MB, free: 8.926 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.000982/0.1567, allocations: 1.097 MB / 361.9 MB, free: 7.777 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005046/0.1572, allocations: 429.5 kB / 362.3 MB, free: 7.309 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.1572, allocations: 4 kB / 362.3 MB, free: 7.305 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003044/0.1575, allocations: 377.5 kB / 362.7 MB, free: 6.887 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006439/0.1582, allocations: 130.3 kB / 362.8 MB, free: 6.766 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003352/0.1615, allocations: 2.797 MB / 365.6 MB, free: 3.859 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00044/0.162, allocations: 0.8022 MB / 366.4 MB, free: 3.031 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.266e-05/0.1621, allocations: 12.64 kB / 366.4 MB, free: 3.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.838e-05/0.1621, allocations: 27.38 kB / 366.4 MB, free: 2.992 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1621, allocations: 0 / 366.4 MB, free: 2.992 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2113/0.3734, allocations: 5.667 MB / 372.1 MB, free: 25.88 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001765/0.3736, allocations: 192.2 kB / 372.3 MB, free: 25.62 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.942/2.316, allocations: 0 / 372.3 MB, free: 25.62 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_INV3S_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_INV3S.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S_res.mat","/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) Reference file matches