Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_latest_Buildings_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.001054/0.001054, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001213/0.001213, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.454/1.454, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.83/2.83, allocations: 409.4 MB / 0.684 GB, free: 0.9844 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003801/0.0003803, allocations: 12 kB / 0.8378 GB, free: 6.527 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7805/0.7809, allocations: 146.8 MB / 0.9811 GB, free: 6.285 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002363/0.7834, allocations: 1.453 MB / 0.9825 GB, free: 4.828 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001794/0.7852, allocations: 1.011 MB / 0.9835 GB, free: 3.805 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001243/0.7853, allocations: 0 / 0.9835 GB, free: 3.805 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0003207/0.7857, allocations: 59.75 kB / 0.9836 GB, free: 3.746 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002491/0.786, allocations: 67.73 kB / 0.9837 GB, free: 3.68 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006558/0.7866, allocations: 189 kB / 0.9838 GB, free: 3.5 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002012/0.7868, allocations: 119.7 kB / 0.984 GB, free: 3.383 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001042/0.7869, allocations: 25.08 kB / 0.984 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001143/0.7871, allocations: 55.72 kB / 0.984 GB, free: 3.301 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001012/0.7872, allocations: 55.75 kB / 0.9841 GB, free: 3.246 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.831e-05/0.7872, allocations: 4 kB / 0.9841 GB, free: 3.242 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001484/0.7874, allocations: 55.95 kB / 0.9841 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 6.634e-05/0.7874, allocations: 31.84 kB / 0.9842 GB, free: 3.156 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 5.407e-05/0.7875, allocations: 45.64 kB / 0.9842 GB, free: 3.105 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002038/0.7877, allocations: 149.9 kB / 0.9844 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.7877, allocations: 0 / 0.9844 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.403e-06/0.7877, allocations: 4 kB / 0.9844 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.749e-06/0.7877, allocations: 0 / 0.9844 GB, free: 2.957 MB / 0.7325 GB 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.0006026/0.7883, allocations: 468.3 kB / 0.9848 GB, free: 2.445 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.7884, allocations: 8.031 kB / 0.9848 GB, free: 2.438 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.412e-05/0.7884, allocations: 38.55 kB / 0.9849 GB, free: 2.391 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.593e-05/0.7885, allocations: 15.81 kB / 0.9849 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002946/0.7888, allocations: 243.7 kB / 0.9851 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.323e-05/0.7888, allocations: 4 kB / 0.9851 GB, free: 2.09 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.739e-05/0.7888, allocations: 4 kB / 0.9851 GB, free: 2.086 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002149/0.7891, allocations: 100.2 kB / 0.9852 GB, free: 1.973 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.7891, allocations: 3.938 kB / 0.9852 GB, free: 1.969 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.7891, allocations: 3.938 kB / 0.9852 GB, free: 1.965 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.039e-05/0.7891, allocations: 4 kB / 0.9852 GB, free: 1.961 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001122/0.7892, allocations: 35.97 kB / 0.9852 GB, free: 1.926 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005305/0.7898, allocations: 352.7 kB / 0.9856 GB, free: 1.531 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002145/0.79, allocations: 86.69 kB / 0.9857 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.961e-05/0.7901, allocations: 32.84 kB / 0.9857 GB, free: 1.402 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.995e-05/0.7901, allocations: 0 / 0.9857 GB, free: 1.402 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002172/0.7903, allocations: 83.38 kB / 0.9858 GB, free: 1.309 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 1.483e-06/0.7904, allocations: 0 / 0.9858 GB, free: 1.309 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8): time 0.0003498/0.7907, allocations: 145.4 kB / 0.9859 GB, free: 1.16 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.825e-05/0.7908, allocations: 102.8 kB / 0.986 GB, free: 1.035 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000259/0.7911, allocations: 262.9 kB / 0.9863 GB, free: 0.7695 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.7911, allocations: 37.69 kB / 0.9863 GB, free: 0.7266 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.174e-05/0.7912, allocations: 116 kB / 0.9864 GB, free: 0.6094 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.932e-05/0.7912, allocations: 19.75 kB / 0.9864 GB, free: 0.5898 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.31e-06/0.7912, allocations: 4 kB / 0.9864 GB, free: 0.5859 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001068/0.7913, allocations: 326.8 kB / 0.9867 GB, free: 264 kB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.956e-05/0.7914, allocations: 23.98 kB / 0.9868 GB, free: 240 kB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.385e-05/0.7915, allocations: 68.27 kB / 0.9868 GB, free: 156 kB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.865e-05/0.7916, allocations: 39.88 kB / 0.9869 GB, free: 116 kB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.7916, allocations: 4 kB / 0.9869 GB, free: 112 kB / 0.7325 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002334/0.7918, allocations: 109.5 kB / 0.987 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.7919, allocations: 4.781 kB / 0.987 GB, free: 15.99 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.7919, allocations: 4 kB / 0.987 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.542e-05/0.7919, allocations: 0 / 0.987 GB, free: 15.98 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.99e-05/0.792, allocations: 19.88 kB / 0.987 GB, free: 15.97 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.792, allocations: 0 / 0.987 GB, free: 15.97 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.237e-05/0.7921, allocations: 11.91 kB / 0.987 GB, free: 15.96 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.814e-06/0.7921, allocations: 48 / 0.987 GB, free: 15.96 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.intTab.combiTimeTable.nextTimeEvent,intTab.y,intTab.combiTimeTable.nextTimeEvent,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001408/0.7922, allocations: 153.8 kB / 0.9872 GB, free: 15.8 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.616e-05/0.7923, allocations: 15.81 kB / 0.9872 GB, free: 15.78 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.694e-05/0.7923, allocations: 25.39 kB / 0.9872 GB, free: 15.76 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.7923, allocations: 3.938 kB / 0.9872 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.7924, allocations: 0 / 0.9872 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.7924, allocations: 0 / 0.9872 GB, free: 15.75 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001861/0.7926, allocations: 221.5 kB / 0.9874 GB, free: 15.49 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/0.7926, allocations: 3.953 kB / 0.9874 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.094e-05/0.7926, allocations: 7.984 kB / 0.9874 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.7926, allocations: 0 / 0.9874 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.7926, allocations: 11.94 kB / 0.9874 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.624e-06/0.7927, allocations: 4 kB / 0.9874 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.7927, allocations: 400 / 0.9874 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002322/0.7929, allocations: 140.9 kB / 0.9876 GB, free: 15.3 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 5.95e-05/0.793, allocations: 100.9 kB / 0.9877 GB, free: 15.19 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.857e-05/0.793, allocations: 3.984 kB / 0.9877 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.449e-05/0.7931, allocations: 4 kB / 0.9877 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.059e-05/0.7931, allocations: 15.98 kB / 0.9877 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/0.7931, allocations: 4.188 kB / 0.9877 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001729/0.7933, allocations: 192.6 kB / 0.9879 GB, free: 14.97 MB / 0.7481 GB Notification: Performance of sort global known variables: time 3.7e-07/0.7933, allocations: 3.938 kB / 0.9879 GB, free: 14.97 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002562/0.7936, allocations: 32 kB / 0.9879 GB, free: 14.94 MB / 0.7481 GB 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 (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.001474/0.7951, allocations: 1.001 MB / 0.9889 GB, free: 14.07 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002124/0.7953, allocations: 71.89 kB / 0.989 GB, free: 14 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.7953, allocations: 0 / 0.989 GB, free: 14 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001845/0.7955, allocations: 31.98 kB / 0.989 GB, free: 13.96 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002986/0.7958, allocations: 44.52 kB / 0.989 GB, free: 13.93 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001554/0.7974, allocations: 0.9708 MB / 0.99 GB, free: 12.9 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003293/0.7977, allocations: 0.7281 MB / 0.9907 GB, free: 12.15 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 8.671e-05/0.7978, allocations: 21.38 kB / 0.9907 GB, free: 12.13 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001909/0.798, allocations: 51.42 kB / 0.9908 GB, free: 12.08 MB / 0.7481 GB Notification: Performance of SimCode: time 2.71e-07/0.798, allocations: 0 / 0.9908 GB, free: 12.08 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01853/0.8166, allocations: 4.136 MB / 0.9948 GB, free: 8.094 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000206/0.8168, allocations: 236.8 kB / 0.995 GB, free: 7.848 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.964/2.78, allocations: 0 / 0.995 GB, free: 7.848 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat does not exist to compare? outputFormat=mat