Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.088/2.088, allocations: 387.1 MB / 399.7 MB, free: 9.551 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009873/0.0009874, allocations: 180.8 kB / 492.3 MB, free: 0.6602 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.499/1.499, allocations: 221.3 MB / 0.7871 GB, free: 12.95 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009151/0.0009148, allocations: 95.94 kB / 0.9267 GB, free: 14 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.215e-05/3.227e-05, allocations: 0 / 1.073 GB, free: 180.4 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.3167, allocations: 142.3 MB / 1.212 GB, free: 38.49 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.099/1.416, allocations: 150.9 MB / 1.36 GB, free: 19.23 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003173/1.416, allocations: 83.05 kB / 1.36 GB, free: 19.23 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.009643/1.426, allocations: 3.032 MB / 1.363 GB, free: 34.75 MB / 0.8386 GB Notification: Performance of FrontEnd: time 2.425e-06/1.426, allocations: 0 / 1.363 GB, free: 34.75 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.753e-05/1.426, allocations: 7.781 kB / 1.363 GB, free: 34.75 MB / 0.8386 GB 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.0006256/1.427, allocations: 0.5223 MB / 1.363 GB, free: 34.27 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.571e-05/1.427, allocations: 11.56 kB / 1.363 GB, free: 34.27 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.728e-05/1.427, allocations: 32.02 kB / 1.363 GB, free: 34.23 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.969e-05/1.427, allocations: 24.08 kB / 1.363 GB, free: 34.22 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002312/1.427, allocations: 208.1 kB / 1.364 GB, free: 34.02 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.425e-05/1.427, allocations: 7.281 kB / 1.364 GB, free: 34.02 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.213e-05/1.427, allocations: 11.53 kB / 1.364 GB, free: 34.02 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002144/1.427, allocations: 107.6 kB / 1.364 GB, free: 33.96 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/1.427, allocations: 0.75 kB / 1.364 GB, free: 33.96 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.683e-05/1.427, allocations: 4.656 kB / 1.364 GB, free: 33.96 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/1.427, allocations: 0 / 1.364 GB, free: 33.96 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.175e-05/1.427, allocations: 38.47 kB / 1.364 GB, free: 33.96 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006135/1.428, allocations: 482 kB / 1.364 GB, free: 33.6 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001076/1.428, allocations: 69.92 kB / 1.364 GB, free: 33.54 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.007e-05/1.428, allocations: 34.53 kB / 1.364 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.642e-05/1.428, allocations: 3.938 kB / 1.364 GB, free: 33.52 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001855/1.428, allocations: 122.8 kB / 1.365 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=12): time 1.172e-06/1.428, allocations: 0 / 1.365 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12): time 0.0002533/1.429, allocations: 127.1 kB / 1.365 GB, free: 33.4 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.267e-05/1.429, allocations: 78.61 kB / 1.365 GB, free: 33.31 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001011/1.429, allocations: 149.5 kB / 1.365 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/1.429, allocations: 32.92 kB / 1.365 GB, free: 33.18 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.799e-05/1.429, allocations: 108.5 kB / 1.365 GB, free: 33.09 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.237e-05/1.429, allocations: 29.83 kB / 1.365 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.204e-06/1.429, allocations: 3.438 kB / 1.365 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001104/1.429, allocations: 322.6 kB / 1.365 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.843e-05/1.429, allocations: 22.47 kB / 1.365 GB, free: 32.76 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.537e-05/1.429, allocations: 105.5 kB / 1.365 GB, free: 32.66 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.216e-05/1.429, allocations: 34.47 kB / 1.365 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/1.429, allocations: 3.875 kB / 1.366 GB, free: 32.65 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001723/1.429, allocations: 131.5 kB / 1.366 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/1.429, allocations: 7.906 kB / 1.366 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.659e-06/1.429, allocations: 9.484 kB / 1.366 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.862e-05/1.429, allocations: 3.812 kB / 1.366 GB, free: 32.59 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001213/1.43, allocations: 31.44 kB / 1.366 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/1.43, allocations: 3.75 kB / 1.366 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/1.43, allocations: 21.86 kB / 1.366 GB, free: 32.57 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.408e-05/1.43, allocations: 7.688 kB / 1.366 GB, free: 32.57 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.pri2.firstTrigger,pri2.firstTrigger,$PRE.pri1.firstTrigger,pri1.firstTrigger,$whenCondition4,$whenCondition2,pri1.sampleTrigger,$whenCondition3,pri2.sampleTrigger,$PRE.pri3.firstTrigger,pri3.firstTrigger,$whenCondition1,pri3.sampleTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * 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 7.332e-05/1.43, allocations: 114.5 kB / 1.366 GB, free: 32.46 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.292e-05/1.43, allocations: 17.09 kB / 1.366 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.517e-05/1.43, allocations: 21.41 kB / 1.366 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/1.43, allocations: 0 / 1.366 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/1.43, allocations: 5.641 kB / 1.366 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/1.43, allocations: 0 / 1.366 GB, free: 32.45 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000461/1.43, allocations: 0.5009 MB / 1.366 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/1.43, allocations: 192 / 1.366 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.569e-05/1.431, allocations: 18.02 kB / 1.366 GB, free: 32.07 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/1.431, allocations: 11.73 kB / 1.366 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/1.431, allocations: 1.547 kB / 1.366 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/1.431, allocations: 0 / 1.366 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/1.431, allocations: 0 / 1.366 GB, free: 32.06 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002304/1.431, allocations: 306.3 kB / 1.367 GB, free: 31.82 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 3.988e-05/1.431, allocations: 88.84 kB / 1.367 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.337e-05/1.431, allocations: 8.594 kB / 1.367 GB, free: 31.72 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001744/1.431, allocations: 25.17 kB / 1.367 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.907e-05/1.431, allocations: 11.67 kB / 1.367 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.066e-05/1.431, allocations: 14.7 kB / 1.367 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.809e-05/1.431, allocations: 114.2 kB / 1.367 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.431, allocations: 0 / 1.367 GB, free: 31.64 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003156/1.432, allocations: 46.09 kB / 1.367 GB, free: 31.63 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 (pri3.sampleTrigger,$whenCondition1,pri3.firstTrigger,pri2.sampleTrigger,pri1.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,pri1.firstTrigger,pri2.firstTrigger) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0008012/1.432, allocations: 1.006 MB / 1.368 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001685/1.433, allocations: 78.75 kB / 1.368 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/1.433, allocations: 0.5625 kB / 1.368 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 6.888e-05/1.433, allocations: 35.61 kB / 1.368 GB, free: 30.76 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002322/1.433, allocations: 18.19 kB / 1.368 GB, free: 30.75 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005449/1.433, allocations: 225.1 kB / 1.368 GB, free: 30.61 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003135/1.434, allocations: 0.7117 MB / 1.369 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.272e-05/1.434, allocations: 28.67 kB / 1.369 GB, free: 29.91 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.503e-05/1.434, allocations: 37.86 kB / 1.369 GB, free: 29.9 MB / 0.8386 GB Notification: Performance of SimCode: time 4.01e-07/1.434, allocations: 0 / 1.369 GB, free: 29.9 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01757/1.451, allocations: 3.074 MB / 1.372 GB, free: 29.57 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001894/1.452, allocations: 186.2 kB / 1.372 GB, free: 29.35 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.863/3.315, allocations: 3.906 kB / 1.372 GB, free: 29.35 MB / 0.8386 GB (rm -f Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.IO.Files.Examples.Printer_res.mat does not exist to compare? outputFormat=mat