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: translateModel(Modelica.Electrical.Digital.Examples.INV3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|iNV3S.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S") translateModel(Modelica.Electrical.Digital.Examples.INV3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|iNV3S.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 97.66 kB / 16.3 MB, free: 5.535 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.001587/0.001587, allocations: 181.9 kB / 17.2 MB, free: 5.469 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.495/1.495, allocations: 223.2 MB / 241.1 MB, free: 400 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002715/0.0002715, allocations: 15.94 kB / 300.7 MB, free: 6.473 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1137/0.114, allocations: 50.41 MB / 351.1 MB, free: 4.051 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.INV3S): time 0.001584/0.1157, allocations: 1.2 MB / 352.3 MB, free: 2.84 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001636/0.1173, allocations: 0.82 MB / 353.2 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.28e-05/0.1174, allocations: 0 / 353.2 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.612e-05/0.1175, allocations: 3.938 kB / 353.2 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.57e-05/0.1176, allocations: 23.89 kB / 353.2 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000222/0.1178, allocations: 31.91 kB / 353.2 MB, free: 1.957 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000118/0.1179, allocations: 71.91 kB / 353.3 MB, free: 1.887 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.67e-05/0.118, allocations: 15.98 kB / 353.3 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003837/0.1184, allocations: 299.4 kB / 353.6 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001149/0.1185, allocations: 67.81 kB / 353.7 MB, free: 1.512 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.827e-05/0.1186, allocations: 4 kB / 353.7 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.449e-05/0.1186, allocations: 4 kB / 353.7 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.638e-05/0.1187, allocations: 63.77 kB / 353.7 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.708e-05/0.1187, allocations: 73.52 kB / 353.8 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000244/0.119, allocations: 279.3 kB / 354.1 MB, free: 1.09 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.119, allocations: 4 kB / 354.1 MB, free: 1.086 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.119, allocations: 3.938 kB / 354.1 MB, free: 1.082 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.119, allocations: 0 / 354.1 MB, free: 1.082 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.0007004/0.1197, allocations: 0.6647 MB / 354.7 MB, free: 352 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.1198, allocations: 11.97 kB / 354.8 MB, free: 340 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.789e-05/0.1198, allocations: 35.53 kB / 354.8 MB, free: 304 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002932/0.1201, allocations: 253.4 kB / 355 MB, free: 8 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.518e-05/0.1202, allocations: 12.05 kB / 355.1 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.525e-05/0.1202, allocations: 4 kB / 355.1 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002892/0.1205, allocations: 125.5 kB / 355.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.1205, allocations: 0 / 355.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.558e-05/0.1206, allocations: 7.953 kB / 355.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.718e-06/0.1206, allocations: 4 kB / 355.2 MB, free: 15.85 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001238/0.1207, allocations: 59.91 kB / 355.2 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006371/0.1214, allocations: 456.6 kB / 355.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001657/0.1215, allocations: 90.55 kB / 355.8 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.959e-06/0.1216, allocations: 7.891 kB / 355.8 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003065/0.1219, allocations: 217.5 kB / 356 MB, free: 14.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.403e-06/0.1219, allocations: 0 / 356 MB, free: 14.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007748/0.1227, allocations: 0.6115 MB / 356.6 MB, free: 14.28 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.426e-05/0.1228, allocations: 170.2 kB / 356.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005529/0.1233, allocations: 0.5167 MB / 357.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.874e-05/0.1233, allocations: 33.7 kB / 357.3 MB, free: 13.51 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.565e-05/0.1234, allocations: 97.14 kB / 357.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.481e-05/0.1234, allocations: 31.64 kB / 357.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.544e-05/0.1235, allocations: 4 kB / 357.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.361e-05/0.1236, allocations: 322.8 kB / 357.8 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001109/0.1237, allocations: 55.97 kB / 357.8 MB, free: 13 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001154/0.1238, allocations: 69.8 kB / 357.9 MB, free: 12.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001496/0.124, allocations: 170.7 kB / 358.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.124, allocations: 0 / 358.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004618/0.1244, allocations: 384.2 kB / 358.4 MB, free: 12.33 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.39e-05/0.1245, allocations: 126.8 kB / 358.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.1245, allocations: 0 / 358.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.1246, allocations: 0 / 358.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.171e-05/0.1246, allocations: 4 kB / 358.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.1246, allocations: 0 / 358.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001485/0.1248, allocations: 19.91 kB / 358.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.359e-05/0.1248, allocations: 39.98 kB / 358.6 MB, free: 12.12 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,$whenCondition1,$whenCondition2,e_table.y,x_table.y,iNV3S.nextstate,iNV3S.yy,$PRE.iNV3S.inertialDelaySensitive.x,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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003024/0.1251, allocations: 370.3 kB / 359 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.583e-05/0.1252, allocations: 39.58 kB / 359 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001046/0.1253, allocations: 67.14 kB / 359.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.1253, allocations: 0 / 359.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.1253, allocations: 0 / 359.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.1253, allocations: 4 kB / 359.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008383/0.1262, allocations: 0.8055 MB / 359.9 MB, free: 10.72 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.1262, allocations: 11.94 kB / 359.9 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.428e-06/0.1262, allocations: 0 / 359.9 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/0.1262, allocations: 4 kB / 359.9 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.57e-05/0.1262, allocations: 15.94 kB / 359.9 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.1262, allocations: 0 / 359.9 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1262, allocations: 0 / 359.9 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005506/0.1268, allocations: 0.5175 MB / 360.5 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002923/0.1271, allocations: 252.3 kB / 360.7 MB, free: 9.867 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.304e-05/0.1272, allocations: 12 kB / 360.7 MB, free: 9.855 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001445/0.1273, allocations: 15.98 kB / 360.7 MB, free: 9.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.925e-05/0.1274, allocations: 23.97 kB / 360.7 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-05/0.1275, allocations: 47.92 kB / 360.8 MB, free: 9.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004153/0.1279, allocations: 390.9 kB / 361.2 MB, free: 9.387 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1279, allocations: 7.875 kB / 361.2 MB, free: 9.379 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002768/0.1282, allocations: 43.94 kB / 361.2 MB, free: 9.336 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001311/0.1283, allocations: 111 kB / 361.3 MB, free: 9.219 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004851/0.1288, allocations: 449.5 kB / 361.8 MB, free: 8.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1288, allocations: 0 / 361.8 MB, free: 8.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002963/0.1291, allocations: 373.6 kB / 362.1 MB, free: 8.316 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005208/0.1297, allocations: 99.52 kB / 362.2 MB, free: 8.219 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00105/0.1307, allocations: 0.731 MB / 363 MB, free: 7.461 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003904/0.1311, allocations: 0.8102 MB / 363.8 MB, free: 6.625 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.142e-05/0.1312, allocations: 8.656 kB / 363.8 MB, free: 6.613 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.873e-05/0.1312, allocations: 11.44 kB / 363.8 MB, free: 6.602 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1312, allocations: 4 kB / 363.8 MB, free: 6.598 MB / 302.1 MB Notification: Performance of Templates: time 0.006549/0.1377, allocations: 3.894 MB / 367.7 MB, free: 2.699 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/INV3S/INV3S.csv","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.INV3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches