Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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: "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator",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.001337/0.001337, allocations: 106.2 kB / 16.4 MB, free: 6.484 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.001856/0.001856, allocations: 193.2 kB / 17.34 MB, free: 5.762 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.886/1.886, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7876/0.7876, allocations: 115.3 MB / 406.5 MB, free: 6.23 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 66.53 kB / 0.5572 GB, free: 32.64 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2367/0.2379, allocations: 76.18 MB / 0.6316 GB, free: 4.93 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegerReplicator): time 0.005947/0.244, allocations: 1.761 MB / 0.6333 GB, free: 3.152 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.003375/0.2474, allocations: 1.107 MB / 0.6344 GB, free: 2.035 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001862/0.2476, allocations: 7.938 kB / 0.6344 GB, free: 2.027 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004815/0.2481, allocations: 51.73 kB / 0.6344 GB, free: 1.977 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000495/0.2487, allocations: 79.67 kB / 0.6345 GB, free: 1.898 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001257/0.2499, allocations: 228.2 kB / 0.6347 GB, free: 1.68 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003884/0.2504, allocations: 147.6 kB / 0.6349 GB, free: 1.535 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001598/0.2505, allocations: 21.11 kB / 0.6349 GB, free: 1.516 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002306/0.2508, allocations: 63.7 kB / 0.635 GB, free: 1.453 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002028/0.251, allocations: 67.69 kB / 0.635 GB, free: 1.387 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 3.849e-05/0.2511, allocations: 8 kB / 0.635 GB, free: 1.379 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002999/0.2514, allocations: 71.95 kB / 0.6351 GB, free: 1.309 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.2515, allocations: 39.89 kB / 0.6351 GB, free: 1.27 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001336/0.2517, allocations: 59.61 kB / 0.6352 GB, free: 1.211 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005277/0.2522, allocations: 202.2 kB / 0.6354 GB, free: 1.016 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.2522, allocations: 0 / 0.6354 GB, free: 1.016 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.2522, allocations: 0 / 0.6354 GB, free: 1.016 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.998e-06/0.2523, allocations: 3.938 kB / 0.6354 GB, free: 1.012 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.001118/0.2534, allocations: 493.1 kB / 0.6359 GB, free: 488 kB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.032e-05/0.2535, allocations: 8.031 kB / 0.6359 GB, free: 480 kB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.491e-05/0.2535, allocations: 42.69 kB / 0.6359 GB, free: 428 kB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.265e-05/0.2536, allocations: 16.75 kB / 0.6359 GB, free: 412 kB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005605/0.2542, allocations: 252.9 kB / 0.6362 GB, free: 116 kB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.78e-05/0.2543, allocations: 4.375 kB / 0.6362 GB, free: 112 kB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.682e-05/0.2543, allocations: 7.938 kB / 0.6362 GB, free: 104 kB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003849/0.2547, allocations: 96.17 kB / 0.6363 GB, free: 15.99 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.2547, allocations: 0 / 0.6363 GB, free: 15.99 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.671e-05/0.2548, allocations: 0 / 0.6363 GB, free: 15.99 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.747e-05/0.2548, allocations: 3.984 kB / 0.6363 GB, free: 15.99 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001781/0.255, allocations: 39.97 kB / 0.6363 GB, free: 15.95 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008846/0.2559, allocations: 356.6 kB / 0.6367 GB, free: 15.55 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004222/0.2563, allocations: 90.69 kB / 0.6367 GB, free: 15.45 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001644/0.2565, allocations: 32.84 kB / 0.6368 GB, free: 15.42 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.353e-05/0.2566, allocations: 4 kB / 0.6368 GB, free: 15.41 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003006/0.2569, allocations: 87.36 kB / 0.6369 GB, free: 15.32 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 2.946e-06/0.2569, allocations: 0 / 0.6369 GB, free: 15.32 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006129/0.2575, allocations: 141.4 kB / 0.637 GB, free: 15.17 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.979e-05/0.2576, allocations: 102.8 kB / 0.6371 GB, free: 15.05 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003875/0.258, allocations: 266.9 kB / 0.6373 GB, free: 14.78 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.573e-05/0.2581, allocations: 29.69 kB / 0.6374 GB, free: 14.74 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.2582, allocations: 124 kB / 0.6375 GB, free: 14.62 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.072e-05/0.2583, allocations: 19.73 kB / 0.6375 GB, free: 14.6 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.688e-05/0.2583, allocations: 25.72 kB / 0.6375 GB, free: 14.57 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001688/0.2585, allocations: 330.8 kB / 0.6379 GB, free: 14.23 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.2587, allocations: 23.98 kB / 0.6379 GB, free: 14.21 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001746/0.2588, allocations: 68.22 kB / 0.6379 GB, free: 14.13 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000255/0.2591, allocations: 73.88 kB / 0.638 GB, free: 14.05 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.2591, allocations: 0 / 0.638 GB, free: 14.05 MB / 494.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004089/0.2596, allocations: 121.3 kB / 0.6381 GB, free: 13.93 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.878e-05/0.2596, allocations: 7.938 kB / 0.6381 GB, free: 13.92 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.261e-05/0.2596, allocations: 4 kB / 0.6381 GB, free: 13.91 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.874e-05/0.2596, allocations: 0 / 0.6381 GB, free: 13.91 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001402/0.2598, allocations: 11.98 kB / 0.6381 GB, free: 13.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.148e-05/0.2598, allocations: 4 kB / 0.6382 GB, free: 13.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/0.2599, allocations: 15.97 kB / 0.6382 GB, free: 13.88 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.199e-05/0.26, allocations: 0 / 0.6382 GB, free: 13.88 MB / 494.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: 8 ($PRE.intTab.combiTimeTable.nextTimeEvent,$whenCondition1,intRep.y[2],intRep.y[1],intTab.combiTimeTable.nextTimeEventScaled,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent,intTab.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 1 * 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.0001835/0.2602, allocations: 137.8 kB / 0.6383 GB, free: 13.74 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.209e-05/0.2602, allocations: 15.81 kB / 0.6383 GB, free: 13.72 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.262e-05/0.2603, allocations: 21.39 kB / 0.6383 GB, free: 13.69 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.001e-05/0.2603, allocations: 4 kB / 0.6383 GB, free: 13.69 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.634e-06/0.2604, allocations: 3.938 kB / 0.6383 GB, free: 13.68 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.2604, allocations: 3.938 kB / 0.6383 GB, free: 13.68 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003432/0.2607, allocations: 221.5 kB / 0.6386 GB, free: 13.41 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.2608, allocations: 0 / 0.6386 GB, free: 13.41 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.062e-05/0.2609, allocations: 11.98 kB / 0.6386 GB, free: 13.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.458e-06/0.2609, allocations: 0 / 0.6386 GB, free: 13.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.2609, allocations: 4 kB / 0.6386 GB, free: 13.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.2609, allocations: 0 / 0.6386 GB, free: 13.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2609, allocations: 0 / 0.6386 GB, free: 13.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00047/0.2614, allocations: 144.8 kB / 0.6387 GB, free: 13.24 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.327e-05/0.2615, allocations: 97.02 kB / 0.6388 GB, free: 13.12 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.386e-05/0.2616, allocations: 4 kB / 0.6388 GB, free: 13.12 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.668e-05/0.2617, allocations: 3.984 kB / 0.6388 GB, free: 13.12 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.283e-05/0.2618, allocations: 11.92 kB / 0.6388 GB, free: 13.11 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.799e-05/0.2618, allocations: 4 kB / 0.6388 GB, free: 13.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003164/0.2621, allocations: 204.1 kB / 0.639 GB, free: 12.9 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.2621, allocations: 0 / 0.639 GB, free: 12.9 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004788/0.2626, allocations: 43.83 kB / 0.6391 GB, free: 12.86 MB / 494.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: 6 ($whenCondition1,intTab.y,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.002609/0.2653, allocations: 0.9883 MB / 0.64 GB, free: 12 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003928/0.2657, allocations: 79.88 kB / 0.6401 GB, free: 11.93 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.2657, allocations: 0 / 0.6401 GB, free: 11.93 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001565/0.2659, allocations: 35.97 kB / 0.6401 GB, free: 11.89 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005322/0.2664, allocations: 59.83 kB / 0.6402 GB, free: 11.84 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004449/0.2709, allocations: 1.933 MB / 0.6421 GB, free: 9.824 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006397/0.2715, allocations: 0.7278 MB / 0.6428 GB, free: 9.07 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000148/0.2717, allocations: 25.38 kB / 0.6428 GB, free: 9.047 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001712/0.2719, allocations: 47.42 kB / 0.6429 GB, free: 9 MB / 494.1 MB Notification: Performance of SimCode: time 1.313e-06/0.2719, allocations: 0 / 0.6429 GB, free: 9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8185/1.09, allocations: 4.724 MB / 0.6475 GB, free: 4.379 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.82/15.91, allocations: 11.16 kB / 0.6475 GB, free: 4.371 MB / 494.1 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegerReplicator.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1)