Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.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.Functions.Examples.TrapezoidalIntegration,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration",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.00144/0.00144, allocations: 100.1 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.002277/0.002277, 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 2.665/2.665, allocations: 223.2 MB / 239.9 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.955/4.955, allocations: 409.2 MB / 0.6838 GB, free: 1 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0006604/0.0006609, allocations: 19.98 kB / 0.8375 GB, free: 6.516 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.495/1.496, allocations: 146.8 MB / 0.9809 GB, free: 6.281 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001526/1.497, allocations: 317.6 kB / 0.9812 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0003907/1.498, allocations: 39.91 kB / 0.9812 GB, free: 5.93 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.134e-05/1.498, allocations: 0 / 0.9812 GB, free: 5.93 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 6.106e-05/1.498, allocations: 0 / 0.9812 GB, free: 5.93 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.116e-05/1.498, allocations: 0 / 0.9812 GB, free: 5.93 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002951/1.498, allocations: 15.92 kB / 0.9812 GB, free: 5.914 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 7.328e-05/1.498, allocations: 4 kB / 0.9812 GB, free: 5.91 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 9.714e-05/1.498, allocations: 4 kB / 0.9812 GB, free: 5.906 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 5.731e-05/1.499, allocations: 3.984 kB / 0.9812 GB, free: 5.902 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 4.802e-05/1.499, allocations: 4 kB / 0.9812 GB, free: 5.898 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.74e-05/1.499, allocations: 0 / 0.9812 GB, free: 5.898 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001309/1.499, allocations: 15.98 kB / 0.9813 GB, free: 5.883 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 4.187e-05/1.499, allocations: 3.938 kB / 0.9813 GB, free: 5.879 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.81e-05/1.499, allocations: 25.7 kB / 0.9813 GB, free: 5.848 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001113/1.499, allocations: 11.98 kB / 0.9813 GB, free: 5.836 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.514e-06/1.499, allocations: 4 kB / 0.9813 GB, free: 5.832 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.848e-06/1.499, allocations: 0 / 0.9813 GB, free: 5.832 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.113e-06/1.499, allocations: 4 kB / 0.9813 GB, free: 5.828 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005667/1.5, allocations: 350.6 kB / 0.9816 GB, free: 5.434 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.474e-05/1.5, allocations: 8.031 kB / 0.9817 GB, free: 5.426 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.349e-05/1.5, allocations: 38.55 kB / 0.9817 GB, free: 5.379 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.945e-05/1.5, allocations: 0 / 0.9817 GB, free: 5.379 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000184/1.5, allocations: 161.3 kB / 0.9818 GB, free: 5.184 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.427e-05/1.5, allocations: 4 kB / 0.9818 GB, free: 5.18 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.79e-05/1.5, allocations: 7.938 kB / 0.9819 GB, free: 5.172 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002265/1.5, allocations: 65.56 kB / 0.9819 GB, free: 5.102 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/1.5, allocations: 4 kB / 0.9819 GB, free: 5.098 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.321e-05/1.5, allocations: 0 / 0.9819 GB, free: 5.098 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.945e-05/1.5, allocations: 7.984 kB / 0.9819 GB, free: 5.09 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.673e-05/1.501, allocations: 23.98 kB / 0.9819 GB, free: 5.066 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006334/1.501, allocations: 260.8 kB / 0.9822 GB, free: 4.762 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 7.213e-05/1.501, allocations: 22.52 kB / 0.9822 GB, free: 4.73 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 9.507e-06/1.501, allocations: 0 / 0.9822 GB, free: 4.73 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.938e-05/1.501, allocations: 42.61 kB / 0.9823 GB, free: 4.68 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=1): time 1.673e-06/1.501, allocations: 3.938 kB / 0.9823 GB, free: 4.676 MB / 0.7325 GB Notification: Performance of matching and sorting (n=1): time 0.0003293/1.502, allocations: 59.41 kB / 0.9823 GB, free: 4.605 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.967e-05/1.502, allocations: 77.11 kB / 0.9824 GB, free: 4.512 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001792/1.502, allocations: 121.8 kB / 0.9825 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.492e-05/1.502, allocations: 29.7 kB / 0.9825 GB, free: 4.344 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/1.502, allocations: 95.77 kB / 0.9826 GB, free: 4.246 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.983e-05/1.502, allocations: 16.06 kB / 0.9826 GB, free: 4.23 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.045e-06/1.502, allocations: 3.938 kB / 0.9826 GB, free: 4.227 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0002551/1.503, allocations: 318.8 kB / 0.983 GB, free: 3.906 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.112e-05/1.503, allocations: 12 kB / 0.983 GB, free: 3.895 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001186/1.503, allocations: 54.86 kB / 0.983 GB, free: 3.816 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001069/1.503, allocations: 49.69 kB / 0.9831 GB, free: 3.762 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.767e-06/1.503, allocations: 4 kB / 0.9831 GB, free: 3.758 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003172/1.503, allocations: 119.4 kB / 0.9832 GB, free: 3.629 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 8.002e-05/1.503, allocations: 29.7 kB / 0.9832 GB, free: 3.594 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.866e-05/1.503, allocations: 4 kB / 0.9832 GB, free: 3.59 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.588e-05/1.503, allocations: 0 / 0.9832 GB, free: 3.59 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001467/1.504, allocations: 15.98 kB / 0.9832 GB, free: 3.574 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.298e-05/1.504, allocations: 7.938 kB / 0.9832 GB, free: 3.566 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000149/1.504, allocations: 7.906 kB / 0.9832 GB, free: 3.559 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.896e-05/1.504, allocations: 8 kB / 0.9833 GB, free: 3.551 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 1 * 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.0002298/1.504, allocations: 139.5 kB / 0.9834 GB, free: 3.398 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.4e-05/1.504, allocations: 12.02 kB / 0.9834 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.043e-05/1.504, allocations: 7.516 kB / 0.9834 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/1.504, allocations: 0 / 0.9834 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/1.504, allocations: 0 / 0.9834 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/1.504, allocations: 4 kB / 0.9834 GB, free: 3.375 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003292/1.505, allocations: 157.7 kB / 0.9836 GB, free: 3.172 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/1.505, allocations: 0 / 0.9836 GB, free: 3.172 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.853e-06/1.505, allocations: 0 / 0.9836 GB, free: 3.172 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.81e-06/1.505, allocations: 0 / 0.9836 GB, free: 3.172 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.342e-05/1.505, allocations: 0 / 0.9836 GB, free: 3.172 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.621e-06/1.505, allocations: 7.938 kB / 0.9836 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/1.505, allocations: 4 kB / 0.9836 GB, free: 3.16 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002767/1.505, allocations: 169.1 kB / 0.9837 GB, free: 2.973 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.306e-05/1.505, allocations: 85.06 kB / 0.9838 GB, free: 2.871 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.807e-05/1.505, allocations: 3.938 kB / 0.9838 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/1.505, allocations: 0 / 0.9838 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.355e-05/1.505, allocations: 4 kB / 0.9838 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.908e-06/1.505, allocations: 0 / 0.9838 GB, free: 2.863 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001092/1.506, allocations: 99.28 kB / 0.9839 GB, free: 2.766 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.8e-07/1.506, allocations: 0 / 0.9839 GB, free: 2.766 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004817/1.506, allocations: 8 kB / 0.9839 GB, free: 2.758 MB / 0.7325 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): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0009958/1.507, allocations: 0.7141 MB / 0.9846 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003056/1.507, allocations: 87.36 kB / 0.9847 GB, free: 1.91 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/1.507, allocations: 0 / 0.9847 GB, free: 1.91 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 7.294e-05/1.507, allocations: 55.41 kB / 0.9848 GB, free: 1.844 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002545/1.508, allocations: 4 kB / 0.9848 GB, free: 1.84 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007862/1.509, allocations: 140.3 kB / 0.9849 GB, free: 1.664 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005577/1.509, allocations: 0.6815 MB / 0.9856 GB, free: 0.957 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001654/1.509, allocations: 16.17 kB / 0.9856 GB, free: 0.9375 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.76e-05/1.509, allocations: 11.44 kB / 0.9856 GB, free: 0.9258 MB / 0.7325 GB Notification: Performance of SimCode: time 8.81e-07/1.509, allocations: 0 / 0.9856 GB, free: 0.9258 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02568/1.535, allocations: 1.223 MB / 0.9868 GB, free: 15.88 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004371/1.536, allocations: 200.3 kB / 0.987 GB, free: 15.65 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.949/4.484, allocations: 64 / 0.987 GB, free: 15.65 MB / 0.7481 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration_res.mat does not exist to compare? outputFormat=mat