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.0009935/0.0009936, allocations: 112.5 kB / 17.68 MB, free: 5.469 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.0009531/0.0009531, allocations: 192 kB / 18.61 MB, free: 4.543 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.34/1.34, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009717/0.0009717, allocations: 60.52 kB / 302 MB, free: 5.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1013, allocations: 49.43 MB / 351.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.INV3S): time 0.003222/0.1046, allocations: 1.52 MB / 353 MB, free: 2.184 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001869/0.1065, allocations: 0.8551 MB / 353.9 MB, free: 1.324 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.873e-05/0.1066, allocations: 4 kB / 353.9 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001051/0.1067, allocations: 7.922 kB / 353.9 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.688e-05/0.1068, allocations: 15.81 kB / 353.9 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000324/0.1072, allocations: 51.88 kB / 353.9 MB, free: 1.246 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002318/0.1074, allocations: 139.8 kB / 354.1 MB, free: 1.109 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.1075, allocations: 27.97 kB / 354.1 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004123/0.108, allocations: 383.3 kB / 354.5 MB, free: 0.707 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001312/0.1081, allocations: 63.7 kB / 354.5 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.982e-05/0.1081, allocations: 12 kB / 354.5 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.632e-05/0.1082, allocations: 8 kB / 354.6 MB, free: 0.625 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.268e-05/0.1083, allocations: 63.77 kB / 354.6 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001233/0.1084, allocations: 115.2 kB / 354.7 MB, free: 460 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003232/0.1087, allocations: 362.7 kB / 355.1 MB, free: 96 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.291e-06/0.1088, allocations: 8 kB / 355.1 MB, free: 88 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1088, allocations: 0 / 355.1 MB, free: 88 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.1088, allocations: 0 / 355.1 MB, free: 88 kB / 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.0007437/0.1095, allocations: 0.7188 MB / 355.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.1096, allocations: 8.031 kB / 355.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.09e-05/0.1096, allocations: 40.47 kB / 355.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002971/0.1099, allocations: 278.3 kB / 356.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.974e-05/0.11, allocations: 4.375 kB / 356.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.598e-05/0.11, allocations: 8.375 kB / 356.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003138/0.1103, allocations: 129.9 kB / 356.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.258e-05/0.1103, allocations: 0 / 356.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.419e-05/0.1104, allocations: 11.94 kB / 356.3 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.1104, allocations: 3.984 kB / 356.3 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001414/0.1105, allocations: 59.95 kB / 356.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007415/0.1113, allocations: 456.5 kB / 356.8 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001924/0.1115, allocations: 102.5 kB / 356.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001423/0.1117, allocations: 88.83 kB / 357 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.245e-06/0.1117, allocations: 0 / 357 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000362/0.112, allocations: 198.7 kB / 357.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.413e-06/0.112, allocations: 0 / 357.2 MB, free: 13.8 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008617/0.1129, allocations: 474.7 kB / 357.6 MB, free: 13.31 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001092/0.113, allocations: 170.2 kB / 357.8 MB, free: 13.11 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000637/0.1137, allocations: 0.5207 MB / 358.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.899e-05/0.1137, allocations: 29.7 kB / 358.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.534e-05/0.1138, allocations: 101.1 kB / 358.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.696e-05/0.1138, allocations: 23.66 kB / 358.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.1139, allocations: 81.41 kB / 358.6 MB, free: 12.33 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.1141, allocations: 326.8 kB / 358.9 MB, free: 12 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001218/0.1142, allocations: 55.97 kB / 358.9 MB, free: 11.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001235/0.1143, allocations: 77.28 kB / 359 MB, free: 11.87 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002876/0.1146, allocations: 343.3 kB / 359.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1146, allocations: 0 / 359.3 MB, free: 11.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004985/0.1151, allocations: 391.5 kB / 359.7 MB, free: 11.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.005e-05/0.1152, allocations: 118.8 kB / 359.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.1152, allocations: 4 kB / 359.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.1152, allocations: 0 / 359.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.76e-05/0.1153, allocations: 0 / 359.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.1153, allocations: 0 / 359.8 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001253/0.1154, allocations: 24.02 kB / 359.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.715e-05/0.1155, allocations: 40.05 kB / 359.9 MB, free: 10.86 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.0002925/0.1158, allocations: 362.2 kB / 360.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.599e-05/0.1158, allocations: 39.53 kB / 360.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001038/0.1159, allocations: 71.12 kB / 360.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.1159, allocations: 0 / 360.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1159, allocations: 128 / 360.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.1159, allocations: 4 kB / 360.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008662/0.1168, allocations: 0.8134 MB / 361.2 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.1168, allocations: 0 / 361.2 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.849e-06/0.1168, allocations: 0 / 361.2 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.1168, allocations: 0 / 361.2 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.788e-05/0.1169, allocations: 15.98 kB / 361.2 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.1169, allocations: 0 / 361.2 MB, free: 9.441 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.1169, allocations: 7.938 kB / 361.2 MB, free: 9.434 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005783/0.1175, allocations: 0.5212 MB / 361.7 MB, free: 8.871 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003102/0.1178, allocations: 248.4 kB / 362 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.373e-05/0.1179, allocations: 12 kB / 362 MB, free: 8.598 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001325/0.118, allocations: 11.98 kB / 362 MB, free: 8.586 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.667e-05/0.1181, allocations: 23.92 kB / 362 MB, free: 8.562 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.133e-05/0.1182, allocations: 51.86 kB / 362.1 MB, free: 8.512 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004307/0.1186, allocations: 386.9 kB / 362.4 MB, free: 8.137 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1186, allocations: 0 / 362.4 MB, free: 8.137 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002885/0.1189, allocations: 43.94 kB / 362.5 MB, free: 8.094 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.0001274/0.119, allocations: 130.9 kB / 362.6 MB, free: 7.957 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004764/0.1195, allocations: 441.5 kB / 363 MB, free: 7.477 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1195, allocations: 0 / 363 MB, free: 7.477 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002905/0.1198, allocations: 369.6 kB / 363.4 MB, free: 7.066 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005734/0.1204, allocations: 125.5 kB / 363.5 MB, free: 6.949 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001022/0.1214, allocations: 0.6458 MB / 364.2 MB, free: 6.281 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004433/0.1219, allocations: 0.8022 MB / 365 MB, free: 5.453 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.472e-05/0.122, allocations: 8.656 kB / 365 MB, free: 5.441 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.799e-05/0.122, allocations: 15.38 kB / 365 MB, free: 5.426 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.122, allocations: 0 / 365 MB, free: 5.426 MB / 302.1 MB Notification: Performance of Templates: time 0.008298/0.1303, allocations: 4.527 MB / 369.5 MB, free: 0.9062 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 -s gbode -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/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