Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.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 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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.Functions.Examples.RegStep,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegStep",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegStep,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegStep",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.0007699/0.0007699, allocations: 92.31 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.0008168/0.0008168, 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.35/1.35, allocations: 223.3 MB / 240 MB, free: 5.215 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.311/2.311, allocations: 390.4 MB / 0.6655 GB, free: 2.867 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003478/0.0003479, allocations: 12 kB / 0.8149 GB, free: 14.07 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7467/0.747, allocations: 142.3 MB / 0.9539 GB, free: 8.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.00065/0.7477, allocations: 318.2 kB / 0.9542 GB, free: 7.906 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.000211/0.7479, allocations: 42.59 kB / 0.9542 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.139e-05/0.748, allocations: 0 / 0.9542 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.09e-05/0.748, allocations: 1.281 kB / 0.9542 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.261e-06/0.748, allocations: 4 kB / 0.9542 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001891/0.7482, allocations: 10.86 kB / 0.9542 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.898e-05/0.7482, allocations: 9.328 kB / 0.9542 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.501e-05/0.7483, allocations: 1.438 kB / 0.9542 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.252e-05/0.7483, allocations: 0 / 0.9542 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.471e-05/0.7483, allocations: 5.125 kB / 0.9542 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 8.536e-06/0.7484, allocations: 0 / 0.9542 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.276e-05/0.7484, allocations: 22.81 kB / 0.9543 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.243e-06/0.7485, allocations: 0 / 0.9543 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.576e-05/0.7485, allocations: 29.64 kB / 0.9543 GB, free: 7.805 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.738e-05/0.7485, allocations: 9.281 kB / 0.9543 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.7486, allocations: 0 / 0.9543 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.543e-06/0.7486, allocations: 0.6562 kB / 0.9543 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.456e-06/0.7486, allocations: 0 / 0.9543 GB, free: 7.801 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0001779/0.7487, allocations: 318.7 kB / 0.9546 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.7488, allocations: 8.906 kB / 0.9546 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.309e-05/0.7488, allocations: 30.56 kB / 0.9546 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002332/0.7491, allocations: 20.61 kB / 0.9547 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.7e-05/0.7491, allocations: 164.5 kB / 0.9548 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.06e-05/0.7491, allocations: 3.984 kB / 0.9548 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.415e-06/0.7491, allocations: 0 / 0.9548 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001161/0.7493, allocations: 34.06 kB / 0.9549 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.7493, allocations: 0 / 0.9549 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.224e-06/0.7493, allocations: 5.125 kB / 0.9549 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.7493, allocations: 0 / 0.9549 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.454e-05/0.7494, allocations: 14.06 kB / 0.9549 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.705e-05/0.7495, allocations: 150.6 kB / 0.955 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.225e-05/0.7496, allocations: 22.19 kB / 0.955 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.099e-05/0.7496, allocations: 8.484 kB / 0.955 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.736e-05/0.7496, allocations: 0 / 0.955 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.644e-05/0.7497, allocations: 31.75 kB / 0.9551 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.7497, allocations: 0 / 0.9551 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001956/0.7499, allocations: 56.61 kB / 0.9551 GB, free: 6.824 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.958e-05/0.7499, allocations: 52.62 kB / 0.9552 GB, free: 6.762 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.594e-05/0.7499, allocations: 89.86 kB / 0.9553 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.424e-06/0.7499, allocations: 25.7 kB / 0.9553 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.288e-06/0.7499, allocations: 85.58 kB / 0.9554 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.511e-05/0.75, allocations: 3.906 kB / 0.9554 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.046e-06/0.75, allocations: 0 / 0.9554 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.263e-05/0.75, allocations: 324.1 kB / 0.9557 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.799e-05/0.7501, allocations: 2.344 kB / 0.9557 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.945e-05/0.7501, allocations: 3.562 kB / 0.9557 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.294e-05/0.7502, allocations: 7.766 kB / 0.9557 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.7502, allocations: 0 / 0.9557 GB, free: 6.215 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 9.684e-05/0.7503, allocations: 47.41 kB / 0.9557 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.7503, allocations: 9.5 kB / 0.9557 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.7503, allocations: 0 / 0.9557 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.7503, allocations: 0 / 0.9557 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.631e-05/0.7504, allocations: 10.48 kB / 0.9558 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.359e-06/0.7504, allocations: 1.406 kB / 0.9558 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.843e-05/0.7504, allocations: 0.6875 kB / 0.9558 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.685e-06/0.7504, allocations: 5.375 kB / 0.9558 GB, free: 6.156 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 5.064e-05/0.7505, allocations: 111.2 kB / 0.9559 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.282e-06/0.7505, allocations: 0 / 0.9559 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.754e-05/0.7505, allocations: 15.09 kB / 0.9559 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.002e-06/0.7505, allocations: 0.625 kB / 0.9559 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.7506, allocations: 1.438 kB / 0.9559 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.7506, allocations: 0 / 0.9559 GB, free: 6.023 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.216e-05/0.7506, allocations: 151.1 kB / 0.956 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.7506, allocations: 0 / 0.956 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.795e-05/0.7507, allocations: 6.891 kB / 0.956 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.7507, allocations: 0 / 0.956 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.614e-06/0.7507, allocations: 5.438 kB / 0.956 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.7507, allocations: 0 / 0.956 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.7507, allocations: 4 kB / 0.956 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001065/0.7508, allocations: 67.27 kB / 0.9561 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.659e-05/0.7508, allocations: 84.84 kB / 0.9562 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.032e-05/0.7508, allocations: 0 / 0.9562 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.755e-05/0.7509, allocations: 1.656 kB / 0.9562 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.348e-05/0.7509, allocations: 0 / 0.9562 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-06/0.7509, allocations: 5.062 kB / 0.9562 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.125e-05/0.7509, allocations: 79.28 kB / 0.9563 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.7509, allocations: 5.375 kB / 0.9563 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001851/0.7511, allocations: 0 / 0.9563 GB, free: 5.559 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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 Backend phase and start with SimCode phase: time 0.0002713/0.7514, allocations: 0.6084 MB / 0.9569 GB, free: 4.949 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001505/0.7515, allocations: 11.77 kB / 0.9569 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.7516, allocations: 0 / 0.9569 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.646e-05/0.7516, allocations: 8.422 kB / 0.9569 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001287/0.7517, allocations: 2.188 kB / 0.9569 GB, free: 4.941 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002782/0.752, allocations: 105 kB / 0.957 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.022e-05/0.7521, allocations: 0.6707 MB / 0.9577 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.53e-05/0.7522, allocations: 1.188 kB / 0.9577 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.144e-05/0.7522, allocations: 8.75 kB / 0.9577 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of SimCode: time 2.21e-07/0.7522, allocations: 0 / 0.9577 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009611/0.7618, allocations: 0.7703 MB / 0.9584 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001278/0.762, allocations: 185.6 kB / 0.9586 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.565/2.327, allocations: 0 / 0.9586 GB, free: 3.504 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegStep_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegStep.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegStep_res.mat does not exist to compare? outputFormat=mat