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.001299/0.001299, allocations: 99.78 kB / 15.05 MB, free: 1.105 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.001398/0.001398, allocations: 177.3 kB / 15.95 MB, free: 216 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.339/1.339, allocations: 223.2 MB / 239.9 MB, free: 5.379 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.301/2.301, allocations: 390.3 MB / 0.6653 GB, free: 2.969 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003523/0.0003526, allocations: 16 kB / 0.8146 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7293/0.7296, allocations: 142.3 MB / 0.9536 GB, free: 8.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegStep): time 0.000665/0.7303, allocations: 322 kB / 0.9539 GB, free: 7.855 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0001946/0.7306, allocations: 47.17 kB / 0.9539 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.382e-05/0.7306, allocations: 0.9688 kB / 0.9539 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.086e-05/0.7306, allocations: 0 / 0.9539 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.009e-06/0.7306, allocations: 0 / 0.9539 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001883/0.7308, allocations: 11.98 kB / 0.954 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.287e-05/0.7308, allocations: 0 / 0.954 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.269e-05/0.7309, allocations: 1.031 kB / 0.954 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.387e-05/0.7309, allocations: 1 kB / 0.954 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 3.434e-05/0.731, allocations: 1.25 kB / 0.954 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 9.077e-06/0.731, allocations: 4 kB / 0.954 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.263e-05/0.7311, allocations: 29.83 kB / 0.954 GB, free: 7.789 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.981e-06/0.7311, allocations: 3.938 kB / 0.954 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.71e-05/0.7311, allocations: 27.02 kB / 0.954 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.535e-05/0.7312, allocations: 7.641 kB / 0.954 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.7312, allocations: 1.094 kB / 0.954 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.433e-06/0.7312, allocations: 0 / 0.954 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.722e-06/0.7312, allocations: 0 / 0.954 GB, free: 7.75 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.0001757/0.7314, allocations: 306.1 kB / 0.9543 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.7314, allocations: 13.84 kB / 0.9543 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.336e-05/0.7314, allocations: 34.56 kB / 0.9544 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002445/0.7317, allocations: 20.89 kB / 0.9544 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.059e-05/0.7317, allocations: 163.1 kB / 0.9545 GB, free: 7.148 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.959e-06/0.7318, allocations: 3.984 kB / 0.9545 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.407e-06/0.7318, allocations: 0.75 kB / 0.9546 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000128/0.7319, allocations: 37.72 kB / 0.9546 GB, free: 7.105 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/0.7319, allocations: 5.25 kB / 0.9546 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.993e-06/0.7319, allocations: 0 / 0.9546 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.7319, allocations: 0 / 0.9546 GB, free: 7.102 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.268e-05/0.732, allocations: 17.03 kB / 0.9546 GB, free: 7.09 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.671e-05/0.7321, allocations: 143.4 kB / 0.9547 GB, free: 6.902 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 6.268e-05/0.7322, allocations: 22.62 kB / 0.9548 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/0.7322, allocations: 4.5 kB / 0.9548 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.53e-05/0.7323, allocations: 35.38 kB / 0.9548 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 7.51e-07/0.7323, allocations: 0 / 0.9548 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0002093/0.7325, allocations: 49.39 kB / 0.9549 GB, free: 6.785 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.264e-05/0.7325, allocations: 55.34 kB / 0.9549 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.727e-05/0.7325, allocations: 93.8 kB / 0.955 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.374e-06/0.7325, allocations: 27.02 kB / 0.955 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.204e-05/0.7326, allocations: 84.27 kB / 0.9551 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.363e-05/0.7326, allocations: 5.281 kB / 0.9551 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.447e-06/0.7326, allocations: 0 / 0.9551 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.354e-05/0.7326, allocations: 318.8 kB / 0.9554 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.179e-05/0.7327, allocations: 6.672 kB / 0.9554 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.527e-05/0.7327, allocations: 4.281 kB / 0.9554 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.582e-05/0.7328, allocations: 6.703 kB / 0.9554 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.7328, allocations: 64 / 0.9554 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001104/0.7329, allocations: 48.06 kB / 0.9555 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.525e-05/0.7329, allocations: 5.125 kB / 0.9555 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.7329, allocations: 0 / 0.9555 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.733, allocations: 0 / 0.9555 GB, free: 6.125 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.446e-05/0.733, allocations: 6.422 kB / 0.9555 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.733, allocations: 1.594 kB / 0.9555 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.158e-05/0.7331, allocations: 1.531 kB / 0.9555 GB, free: 6.121 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.931e-06/0.7331, allocations: 0 / 0.9555 GB, free: 6.121 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.057e-05/0.7331, allocations: 115.3 kB / 0.9556 GB, free: 6 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.582e-06/0.7332, allocations: 0 / 0.9556 GB, free: 6 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.647e-05/0.7332, allocations: 8.25 kB / 0.9556 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.7332, allocations: 0 / 0.9556 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.7332, allocations: 1.344 kB / 0.9556 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.943e-06/0.7332, allocations: 0 / 0.9556 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.563e-05/0.7333, allocations: 150.9 kB / 0.9557 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.7333, allocations: 0 / 0.9557 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.086e-05/0.7333, allocations: 2.469 kB / 0.9558 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.7333, allocations: 9.328 kB / 0.9558 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-06/0.7333, allocations: 0 / 0.9558 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.7333, allocations: 1.562 kB / 0.9558 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.7333, allocations: 0 / 0.9558 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000121/0.7335, allocations: 70.23 kB / 0.9558 GB, free: 5.711 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.606e-05/0.7335, allocations: 80.45 kB / 0.9559 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.215e-05/0.7335, allocations: 5.062 kB / 0.9559 GB, free: 5.613 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.164e-05/0.7336, allocations: 9.047 kB / 0.9559 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.4e-05/0.7336, allocations: 1.625 kB / 0.9559 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.136e-06/0.7336, allocations: 3.938 kB / 0.9559 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.264e-05/0.7336, allocations: 75.28 kB / 0.956 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.7336, allocations: 0 / 0.956 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0001766/0.7338, allocations: 1.438 kB / 0.956 GB, free: 5.527 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.0003182/0.7341, allocations: 0.6078 MB / 0.9566 GB, free: 4.918 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001226/0.7342, allocations: 16.48 kB / 0.9566 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.7343, allocations: 0 / 0.9566 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 3.892e-05/0.7343, allocations: 3.625 kB / 0.9566 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.55e-05/0.7344, allocations: 5.344 kB / 0.9566 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003006/0.7347, allocations: 109.8 kB / 0.9567 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001062/0.7348, allocations: 0.6717 MB / 0.9574 GB, free: 4.074 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.69e-05/0.7349, allocations: 4.953 kB / 0.9574 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.515e-05/0.7349, allocations: 13.16 kB / 0.9574 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.7349, allocations: 0 / 0.9574 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01052/0.7454, allocations: 0.7362 MB / 0.9581 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000144/0.7456, allocations: 179.7 kB / 0.9583 GB, free: 3.484 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.531/2.276, allocations: 2.531 kB / 0.9583 GB, free: 3.484 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