Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Blocks.IntegerTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerTable.y|integerTable2.y|integerTable3.y|integerTable4.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable") translateModel(ModelicaTest.Blocks.IntegerTable,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integerTable.y|integerTable2.y|integerTable3.y|integerTable4.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 113.8 kB / 17.78 MB, free: 5.281 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.001124/0.001125, allocations: 179.9 kB / 18.71 MB, free: 4.363 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.259/1.259, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1876/0.1876, allocations: 44.19 MB / 336.7 MB, free: 2.684 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001104/0.001104, allocations: 63.88 kB / 470.5 MB, free: 13.19 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3019, allocations: 60.82 MB / 0.5189 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.IntegerTable): time 0.002872/0.3048, allocations: 2.278 MB / 0.5211 GB, free: 1.98 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002046/0.3069, allocations: 1.552 MB / 0.5226 GB, free: 0.918 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000125/0.307, allocations: 7.375 kB / 0.5226 GB, free: 0.9141 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003699/0.3074, allocations: 143.6 kB / 0.5228 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003923/0.3078, allocations: 218 kB / 0.523 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0013/0.3091, allocations: 0.6619 MB / 0.5236 GB, free: 424 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005206/0.3097, allocations: 0.5354 MB / 0.5242 GB, free: 160 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00014/0.3098, allocations: 67.89 kB / 0.5242 GB, free: 128 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002149/0.31, allocations: 223 kB / 0.5244 GB, free: 28 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002626/0.3103, allocations: 215.3 kB / 0.5246 GB, free: 15.93 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.426e-05/0.3104, allocations: 29.52 kB / 0.5247 GB, free: 15.93 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003471/0.3107, allocations: 168.5 kB / 0.5248 GB, free: 15.89 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001562/0.3109, allocations: 124.2 kB / 0.5249 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001791/0.3111, allocations: 205.4 kB / 0.5251 GB, free: 15.69 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006758/0.3118, allocations: 0.5775 MB / 0.5257 GB, free: 15.45 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.3118, allocations: 0 / 0.5257 GB, free: 15.45 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3118, allocations: 1.375 kB / 0.5257 GB, free: 15.45 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.176e-06/0.3118, allocations: 0 / 0.5257 GB, free: 15.45 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.001143/0.3129, allocations: 0.9024 MB / 0.5266 GB, free: 14.63 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.135e-05/0.313, allocations: 9.625 kB / 0.5266 GB, free: 14.63 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.519e-05/0.3131, allocations: 58.69 kB / 0.5266 GB, free: 14.6 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005528/0.3136, allocations: 470.3 kB / 0.5271 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.919e-05/0.3137, allocations: 11.48 kB / 0.5271 GB, free: 14.19 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.321e-05/0.3137, allocations: 21.73 kB / 0.5271 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004065/0.3141, allocations: 258.3 kB / 0.5274 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.3141, allocations: 0 / 0.5274 GB, free: 13.96 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.286e-05/0.3142, allocations: 10.75 kB / 0.5274 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-06/0.3142, allocations: 2.75 kB / 0.5274 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002751/0.3145, allocations: 114.8 kB / 0.5275 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009431/0.3154, allocations: 0.8753 MB / 0.5284 GB, free: 13.1 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005933/0.316, allocations: 292.4 kB / 0.5286 GB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002096/0.3162, allocations: 111.7 kB / 0.5287 GB, free: 12.81 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.256e-05/0.3163, allocations: 11.08 kB / 0.5287 GB, free: 12.8 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003697/0.3167, allocations: 220.2 kB / 0.529 GB, free: 12.64 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.533e-06/0.3167, allocations: 3.938 kB / 0.529 GB, free: 12.63 MB / 398.1 MB Notification: Performance of matching and sorting (n=24): time 0.0009001/0.3176, allocations: 414.5 kB / 0.5294 GB, free: 12.41 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/0.3177, allocations: 338 kB / 0.5297 GB, free: 12.01 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006901/0.3184, allocations: 0.6361 MB / 0.5303 GB, free: 11.66 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.019e-05/0.3184, allocations: 33.98 kB / 0.5303 GB, free: 11.62 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001761/0.3186, allocations: 224.3 kB / 0.5305 GB, free: 11.43 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.319e-05/0.3187, allocations: 69.44 kB / 0.5306 GB, free: 11.37 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.477e-05/0.3188, allocations: 64.62 kB / 0.5307 GB, free: 11.33 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.3189, allocations: 365.1 kB / 0.531 GB, free: 10.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002069/0.3191, allocations: 81.23 kB / 0.5311 GB, free: 10.94 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003162/0.3195, allocations: 243.6 kB / 0.5313 GB, free: 10.71 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004303/0.3199, allocations: 233.4 kB / 0.5316 GB, free: 10.55 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.614e-06/0.3199, allocations: 0 / 0.5316 GB, free: 10.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006012/0.3205, allocations: 321.9 kB / 0.5319 GB, free: 10.38 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.3205, allocations: 4.875 kB / 0.5319 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.3206, allocations: 3.031 kB / 0.5319 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.231e-05/0.3206, allocations: 7 kB / 0.5319 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002433/0.3208, allocations: 61.27 kB / 0.5319 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.145e-06/0.3209, allocations: 3 kB / 0.5319 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001878/0.321, allocations: 31.62 kB / 0.532 GB, free: 10.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.922e-05/0.3211, allocations: 8.156 kB / 0.532 GB, free: 10.34 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 24 ($PRE.integerTable.combiTimeTable.nextTimeEvent,$whenCondition4,integerTable.combiTimeTable.nextTimeEventScaled,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.y,$PRE.integerTable2.combiTimeTable.nextTimeEvent,$whenCondition3,integerTable2.combiTimeTable.nextTimeEventScaled,$PRE.integerTable2.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEvent,integerTable2.y,$PRE.integerTable3.combiTimeTable.nextTimeEvent,$whenCondition2,integerTable3.combiTimeTable.nextTimeEventScaled,$PRE.integerTable3.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEvent,integerTable3.y,$PRE.integerTable4.combiTimeTable.nextTimeEvent,$whenCondition1,integerTable4.combiTimeTable.nextTimeEventScaled,$PRE.integerTable4.combiTimeTable.nextTimeEventScaled,integerTable4.combiTimeTable.nextTimeEvent,integerTable4.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * 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.0002081/0.3213, allocations: 216.1 kB / 0.5322 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.102e-05/0.3214, allocations: 53.08 kB / 0.5322 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.517e-05/0.3215, allocations: 58.25 kB / 0.5323 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/0.3215, allocations: 7.344 kB / 0.5323 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.3215, allocations: 6.375 kB / 0.5323 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.249e-06/0.3215, allocations: 1.062 kB / 0.5323 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003759/0.3219, allocations: 411.3 kB / 0.5327 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.3219, allocations: 0 / 0.5327 GB, free: 9.734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001162/0.322, allocations: 29.34 kB / 0.5327 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.322, allocations: 2.094 kB / 0.5327 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.305e-05/0.3221, allocations: 9.375 kB / 0.5327 GB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.592e-06/0.3221, allocations: 13.02 kB / 0.5327 GB, free: 9.707 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.3221, allocations: 1.062 kB / 0.5327 GB, free: 9.707 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000637/0.3227, allocations: 358.2 kB / 0.5331 GB, free: 9.484 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.666e-05/0.3228, allocations: 134.6 kB / 0.5332 GB, free: 9.352 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.613e-05/0.3229, allocations: 12.28 kB / 0.5332 GB, free: 9.344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000161/0.3231, allocations: 19.95 kB / 0.5332 GB, free: 9.332 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.777e-05/0.3232, allocations: 38.33 kB / 0.5333 GB, free: 9.309 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.675e-05/0.3232, allocations: 26.56 kB / 0.5333 GB, free: 9.293 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004812/0.3237, allocations: 464.1 kB / 0.5338 GB, free: 9.051 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3237, allocations: 0 / 0.5338 GB, free: 9.051 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000421/0.3241, allocations: 97.16 kB / 0.5338 GB, free: 9.031 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition4,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,$whenCondition3,integerTable2.y,integerTable2.combiTimeTable.nextTimeEvent,integerTable2.combiTimeTable.nextTimeEventScaled,$whenCondition2,integerTable3.y,integerTable3.combiTimeTable.nextTimeEvent,integerTable3.combiTimeTable.nextTimeEventScaled,$whenCondition1,integerTable4.y,integerTable4.combiTimeTable.nextTimeEvent,integerTable4.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 8 (integerTable4.combiTimeTable.nextTimeEventScaled,integerTable4.combiTimeTable.nextTimeEvent,integerTable3.combiTimeTable.nextTimeEventScaled,integerTable3.combiTimeTable.nextTimeEvent,integerTable2.combiTimeTable.nextTimeEventScaled,integerTable2.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0009693/0.3251, allocations: 461.8 kB / 0.5343 GB, free: 8.805 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005269/0.3257, allocations: 228.7 kB / 0.5345 GB, free: 8.703 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3257, allocations: 1.188 kB / 0.5345 GB, free: 8.703 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003281/0.326, allocations: 166 kB / 0.5347 GB, free: 8.629 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006532/0.3267, allocations: 162.5 kB / 0.5348 GB, free: 8.547 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001046/0.3277, allocations: 0.7818 MB / 0.5356 GB, free: 8.043 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003584/0.3281, allocations: 0.8364 MB / 0.5364 GB, free: 7.273 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000225/0.3283, allocations: 85.17 kB / 0.5365 GB, free: 7.234 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001137/0.3285, allocations: 50.86 kB / 0.5365 GB, free: 7.219 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3285, allocations: 0 / 0.5365 GB, free: 7.219 MB / 398.1 MB Notification: Performance of Templates: time 0.01339/0.3419, allocations: 7.596 MB / 0.5439 GB, free: 1.984 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/IntegerTable/IntegerTable.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.IntegerTable.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches