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: translateModel(Modelica.Electrical.Digital.Examples.INV3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|iNV3S.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S") translateModel(Modelica.Electrical.Digital.Examples.INV3S,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|iNV3S.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001518/0.001518, allocations: 103 kB / 17.32 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001797/0.001797, allocations: 209.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 227.4 MB / 246.4 MB, free: 9.094 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 61.72 kB / 306.4 MB, free: 0.7305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09412/0.09541, allocations: 50.53 MB / 357 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.INV3S): time 0.002908/0.09835, allocations: 1.58 MB / 358.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001914/0.1003, allocations: 0.8811 MB / 359.4 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.483e-05/0.1004, allocations: 0 / 359.4 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001019/0.1005, allocations: 7.922 kB / 359.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.877e-05/0.1006, allocations: 11.92 kB / 359.4 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000276/0.1009, allocations: 43.89 kB / 359.5 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002301/0.1012, allocations: 159.7 kB / 359.6 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000105/0.1013, allocations: 15.98 kB / 359.7 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004724/0.1018, allocations: 387.3 kB / 360 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001622/0.1019, allocations: 75.75 kB / 360.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.221e-05/0.102, allocations: 8 kB / 360.1 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.027e-05/0.102, allocations: 12 kB / 360.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.747e-05/0.1021, allocations: 71.64 kB / 360.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001204/0.1022, allocations: 115.2 kB / 360.3 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003464/0.1026, allocations: 362.7 kB / 360.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.237e-06/0.1026, allocations: 0 / 360.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1026, allocations: 0 / 360.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.264e-05/0.1026, allocations: 0 / 360.7 MB, free: 10.48 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.0008578/0.1035, allocations: 0.7113 MB / 361.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/0.1035, allocations: 8.031 kB / 361.4 MB, free: 9.684 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.236e-05/0.1036, allocations: 44.41 kB / 361.4 MB, free: 9.641 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003068/0.1039, allocations: 286.3 kB / 361.7 MB, free: 9.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.065e-05/0.104, allocations: 4.375 kB / 361.7 MB, free: 9.316 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.225e-05/0.104, allocations: 12.38 kB / 361.7 MB, free: 9.305 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003078/0.1043, allocations: 125.9 kB / 361.9 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.1043, allocations: 0 / 361.9 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.475e-05/0.1044, allocations: 7.984 kB / 361.9 MB, free: 9.168 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.1044, allocations: 3.938 kB / 361.9 MB, free: 9.164 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001438/0.1045, allocations: 55.97 kB / 361.9 MB, free: 9.109 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000655/0.1052, allocations: 468.4 kB / 362.4 MB, free: 8.602 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00019/0.1054, allocations: 94.55 kB / 362.5 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000144/0.1056, allocations: 84.83 kB / 362.6 MB, free: 8.414 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.958e-06/0.1056, allocations: 0 / 362.6 MB, free: 8.414 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003791/0.106, allocations: 206.6 kB / 362.8 MB, free: 8.188 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.522e-06/0.106, allocations: 0 / 362.8 MB, free: 8.188 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007777/0.1068, allocations: 460 kB / 363.2 MB, free: 7.707 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.35e-05/0.1069, allocations: 170.2 kB / 363.4 MB, free: 7.504 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006235/0.1075, allocations: 0.5168 MB / 363.9 MB, free: 6.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.188e-05/0.1075, allocations: 29.7 kB / 363.9 MB, free: 6.945 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.722e-05/0.1076, allocations: 105.1 kB / 364 MB, free: 6.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.099e-05/0.1077, allocations: 27.64 kB / 364 MB, free: 6.812 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001156/0.1078, allocations: 85.41 kB / 364.1 MB, free: 6.723 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.1079, allocations: 326.8 kB / 364.4 MB, free: 6.395 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001243/0.108, allocations: 55.97 kB / 364.5 MB, free: 6.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001285/0.1082, allocations: 69.69 kB / 364.6 MB, free: 6.266 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003438/0.1085, allocations: 351.1 kB / 364.9 MB, free: 5.871 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.778e-06/0.1085, allocations: 3.984 kB / 364.9 MB, free: 5.867 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005403/0.1091, allocations: 376.3 kB / 365.3 MB, free: 5.469 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.791e-05/0.1092, allocations: 122.8 kB / 365.4 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.1092, allocations: 0 / 365.4 MB, free: 5.324 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.1092, allocations: 4 kB / 365.4 MB, free: 5.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.405e-05/0.1092, allocations: 3.984 kB / 365.4 MB, free: 5.316 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.1093, allocations: 4.047 kB / 365.4 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001571/0.1094, allocations: 19.94 kB / 365.4 MB, free: 5.293 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.595e-05/0.1095, allocations: 39.98 kB / 365.5 MB, free: 5.254 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.0003535/0.1098, allocations: 367.3 kB / 365.8 MB, free: 4.859 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6e-05/0.1099, allocations: 47.52 kB / 365.9 MB, free: 4.812 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001091/0.11, allocations: 67.14 kB / 365.9 MB, free: 4.738 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.11, allocations: 0 / 365.9 MB, free: 4.738 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.1101, allocations: 0 / 365.9 MB, free: 4.738 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.1101, allocations: 128 / 365.9 MB, free: 4.738 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001004/0.1111, allocations: 0.8171 MB / 366.8 MB, free: 3.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.1111, allocations: 0 / 366.8 MB, free: 3.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.733e-06/0.1111, allocations: 0 / 366.8 MB, free: 3.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.1111, allocations: 0 / 366.8 MB, free: 3.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.354e-05/0.1111, allocations: 15.98 kB / 366.8 MB, free: 3.824 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.1112, allocations: 4 kB / 366.8 MB, free: 3.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.391e-06/0.1112, allocations: 7.938 kB / 366.8 MB, free: 3.812 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006538/0.1118, allocations: 0.5213 MB / 367.3 MB, free: 3.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003107/0.1121, allocations: 248.4 kB / 367.6 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.893e-05/0.1122, allocations: 12 kB / 367.6 MB, free: 2.977 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001433/0.1124, allocations: 11.98 kB / 367.6 MB, free: 2.965 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001177/0.1125, allocations: 27.92 kB / 367.6 MB, free: 2.938 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.738e-05/0.1126, allocations: 47.92 kB / 367.6 MB, free: 2.891 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004449/0.113, allocations: 386.9 kB / 368 MB, free: 2.512 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.113, allocations: 0 / 368 MB, free: 2.512 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003004/0.1133, allocations: 43.94 kB / 368.1 MB, free: 2.469 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.0001391/0.1135, allocations: 123 kB / 368.2 MB, free: 2.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005351/0.114, allocations: 429.5 kB / 368.6 MB, free: 1.871 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.114, allocations: 8 kB / 368.6 MB, free: 1.863 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003356/0.1144, allocations: 385.6 kB / 369 MB, free: 1.438 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006408/0.115, allocations: 116.5 kB / 369.1 MB, free: 1.336 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/0.1162, allocations: 0.7668 MB / 369.9 MB, free: 0.543 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1827/0.2989, allocations: 0.8035 MB / 370.7 MB, free: 20.08 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001074/0.299, allocations: 9.781 kB / 370.7 MB, free: 20.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.549e-05/0.2991, allocations: 12.56 kB / 370.7 MB, free: 20.06 MB / 302.1 MB Notification: Performance of SimCode: time 9.11e-07/0.2991, allocations: 0 / 370.7 MB, free: 20.06 MB / 302.1 MB Notification: Performance of Templates: time 0.01124/0.3103, allocations: 4.393 MB / 375.1 MB, free: 19.73 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.INV3S.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches