Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.Printer,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.074/2.074, allocations: 390.3 MB / 402.8 MB, free: 6.676 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.001181/0.001181, allocations: 172.3 kB / 496.1 MB, free: 12.85 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 221.3 MB / 0.7915 GB, free: 5.438 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.0009707/0.0009708, allocations: 87.95 kB / 0.9317 GB, free: 5.75 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.425e-05/4.451e-05, allocations: 4 kB / 1.079 GB, free: 140.4 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2632/0.2632, allocations: 143 MB / 1.219 GB, free: 13.42 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9881/1.251, allocations: 151.7 MB / 1.367 GB, free: 2.285 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002118/1.252, allocations: 80.27 kB / 1.367 GB, free: 2.242 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.008794/1.26, allocations: 3.043 MB / 1.37 GB, free: 15.62 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.031e-06/1.26, allocations: 0 / 1.37 GB, free: 15.62 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.804e-05/1.26, allocations: 4 kB / 1.37 GB, free: 15.61 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.0007636/1.261, allocations: 0.5171 MB / 1.371 GB, free: 15.05 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.356e-05/1.261, allocations: 8.031 kB / 1.371 GB, free: 15.04 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.566e-05/1.261, allocations: 41.61 kB / 1.371 GB, free: 14.99 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.617e-05/1.261, allocations: 15.91 kB / 1.371 GB, free: 14.98 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002549/1.262, allocations: 215.7 kB / 1.371 GB, free: 14.73 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/1.262, allocations: 11.62 kB / 1.371 GB, free: 14.73 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.115e-05/1.262, allocations: 8 kB / 1.371 GB, free: 14.72 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002153/1.262, allocations: 106.8 kB / 1.371 GB, free: 14.62 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/1.262, allocations: 0 / 1.371 GB, free: 14.62 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.74e-05/1.262, allocations: 3.984 kB / 1.371 GB, free: 14.62 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/1.262, allocations: 0 / 1.371 GB, free: 14.62 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.091e-05/1.262, allocations: 38.38 kB / 1.371 GB, free: 14.59 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006825/1.263, allocations: 481.6 kB / 1.371 GB, free: 14.11 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001077/1.263, allocations: 66.72 kB / 1.372 GB, free: 14.04 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.293e-05/1.263, allocations: 35.28 kB / 1.372 GB, free: 14 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 2.845e-05/1.263, allocations: 7.922 kB / 1.372 GB, free: 14 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002074/1.263, allocations: 130.9 kB / 1.372 GB, free: 13.87 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=12): time 1.583e-06/1.263, allocations: 4 kB / 1.372 GB, free: 13.86 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12): time 0.0002675/1.264, allocations: 112.2 kB / 1.372 GB, free: 13.77 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.822e-05/1.264, allocations: 81.11 kB / 1.372 GB, free: 13.67 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001283/1.264, allocations: 148.3 kB / 1.372 GB, free: 13.53 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.858e-05/1.264, allocations: 33.08 kB / 1.372 GB, free: 13.5 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.52e-05/1.264, allocations: 112.7 kB / 1.372 GB, free: 13.39 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 3.268e-05/1.264, allocations: 23.08 kB / 1.372 GB, free: 13.38 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.544e-06/1.264, allocations: 7.547 kB / 1.372 GB, free: 13.37 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001156/1.264, allocations: 326.6 kB / 1.373 GB, free: 13.05 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.581e-05/1.264, allocations: 23.48 kB / 1.373 GB, free: 13.03 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001059/1.264, allocations: 108.6 kB / 1.373 GB, free: 12.9 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.195e-05/1.264, allocations: 31.55 kB / 1.373 GB, free: 12.88 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/1.264, allocations: 4 kB / 1.373 GB, free: 12.88 MB / 0.8386 GB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001883/1.264, allocations: 130 kB / 1.373 GB, free: 12.76 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/1.265, allocations: 8 kB / 1.373 GB, free: 12.75 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/1.265, allocations: 3.984 kB / 1.373 GB, free: 12.75 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.667e-05/1.265, allocations: 7.953 kB / 1.373 GB, free: 12.74 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/1.265, allocations: 20.27 kB / 1.373 GB, free: 12.72 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/1.265, allocations: 7.938 kB / 1.373 GB, free: 12.71 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.898e-05/1.265, allocations: 19.42 kB / 1.373 GB, free: 12.7 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.272e-05/1.265, allocations: 4 kB / 1.373 GB, free: 12.69 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 8.671e-05/1.265, allocations: 116.4 kB / 1.373 GB, free: 12.58 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.467e-05/1.265, allocations: 11.91 kB / 1.373 GB, free: 12.57 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.074e-05/1.265, allocations: 20.27 kB / 1.373 GB, free: 12.55 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.396e-06/1.265, allocations: 11.95 kB / 1.373 GB, free: 12.54 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/1.265, allocations: 0 / 1.373 GB, free: 12.54 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/1.265, allocations: 0 / 1.373 GB, free: 12.54 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005753/1.266, allocations: 0.5009 MB / 1.374 GB, free: 12.03 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/1.266, allocations: 192 / 1.374 GB, free: 12.03 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.715e-05/1.266, allocations: 23.88 kB / 1.374 GB, free: 12.01 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/1.266, allocations: 7.938 kB / 1.374 GB, free: 12 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/1.266, allocations: 4 kB / 1.374 GB, free: 12 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.514e-06/1.266, allocations: 0 / 1.374 GB, free: 12 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/1.266, allocations: 0 / 1.374 GB, free: 12 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002955/1.266, allocations: 304.2 kB / 1.374 GB, free: 11.7 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.116e-05/1.266, allocations: 85.02 kB / 1.374 GB, free: 11.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.064e-05/1.266, allocations: 7.438 kB / 1.374 GB, free: 11.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001891/1.266, allocations: 23.97 kB / 1.374 GB, free: 11.57 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.909e-05/1.266, allocations: 15.3 kB / 1.374 GB, free: 11.55 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.778e-05/1.266, allocations: 8 kB / 1.374 GB, free: 11.55 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 9.612e-05/1.267, allocations: 118.1 kB / 1.374 GB, free: 11.44 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.267, allocations: 0 / 1.374 GB, free: 11.44 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0003375/1.267, allocations: 50.33 kB / 1.374 GB, free: 11.4 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.001004/1.268, allocations: 1.007 MB / 1.375 GB, free: 10.43 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002198/1.268, allocations: 80.98 kB / 1.375 GB, free: 10.36 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/1.268, allocations: 0 / 1.375 GB, free: 10.36 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 8.11e-05/1.268, allocations: 34.38 kB / 1.375 GB, free: 10.34 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002458/1.269, allocations: 22.98 kB / 1.375 GB, free: 10.32 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006555/1.269, allocations: 216.8 kB / 1.375 GB, free: 10.09 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003234/1.27, allocations: 0.7237 MB / 1.376 GB, free: 9.344 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 7.315e-05/1.27, allocations: 24.39 kB / 1.376 GB, free: 9.32 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.929e-05/1.27, allocations: 33.06 kB / 1.376 GB, free: 9.305 MB / 0.8386 GB Notification: Performance of SimCode: time 4.01e-07/1.27, allocations: 0 / 1.376 GB, free: 9.305 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01623/1.286, allocations: 3.075 MB / 1.379 GB, free: 6.371 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001701/1.286, allocations: 195.9 kB / 1.379 GB, free: 6.141 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.579/2.865, allocations: 4 kB / 1.379 GB, free: 6.137 MB / 0.8386 GB (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_IO_Files_Examples_Printer.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.IO.Files.Examples.Printer_res.mat does not exist to compare? outputFormat=mat