Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_TrapezoidalIntegration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration,fileNamePrefix="BuildingSystems_BuildingSystems_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.001463/0.001464, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001519/0.001519, allocations: 198.2 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002133/0.002133, allocations: 278.9 kB / 290.7 MB, free: 2.016 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9301/0.9301, allocations: 169.3 MB / 0.4982 GB, free: 13.95 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001805/0.001805, allocations: 100 kB / 0.5954 GB, free: 27.85 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1343, allocations: 86.97 MB / 0.6803 GB, free: 0.5469 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001803/0.1361, allocations: 0.5727 MB / 0.6809 GB, free: 15.98 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002203/0.1363, allocations: 40.55 kB / 0.6809 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.88e-05/0.1364, allocations: 0 / 0.6809 GB, free: 15.95 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.636e-05/0.1364, allocations: 4.469 kB / 0.6809 GB, free: 15.94 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.334e-05/0.1365, allocations: 0.7188 kB / 0.6809 GB, free: 15.94 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001943/0.1367, allocations: 17.84 kB / 0.6809 GB, free: 15.93 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.505e-05/0.1367, allocations: 3.984 kB / 0.6809 GB, free: 15.92 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.114e-05/0.1368, allocations: 8 kB / 0.6809 GB, free: 15.91 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.878e-05/0.1368, allocations: 4 kB / 0.6809 GB, free: 15.91 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.888e-05/0.1368, allocations: 0 / 0.6809 GB, free: 15.91 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.488e-05/0.1369, allocations: 11.98 kB / 0.6809 GB, free: 15.9 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.395e-05/0.1369, allocations: 23.92 kB / 0.681 GB, free: 15.88 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.514e-05/0.137, allocations: 0 / 0.681 GB, free: 15.88 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.296e-05/0.137, allocations: 7.938 kB / 0.681 GB, free: 15.87 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.641e-05/0.1371, allocations: 23.91 kB / 0.681 GB, free: 15.84 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1371, allocations: 0 / 0.681 GB, free: 15.84 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1371, allocations: 0 / 0.681 GB, free: 15.84 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.1371, allocations: 0 / 0.681 GB, free: 15.84 MB / 494.1 MB 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.0003058/0.1374, allocations: 353.5 kB / 0.6813 GB, free: 15.44 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.685e-05/0.1375, allocations: 12.03 kB / 0.6813 GB, free: 15.43 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.634e-05/0.1375, allocations: 34.75 kB / 0.6814 GB, free: 15.39 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.394e-05/0.1375, allocations: 0.9375 kB / 0.6814 GB, free: 15.39 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.594e-05/0.1376, allocations: 168.3 kB / 0.6815 GB, free: 15.18 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.004e-05/0.1376, allocations: 384 / 0.6815 GB, free: 15.18 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.594e-06/0.1377, allocations: 384 / 0.6815 GB, free: 15.18 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001352/0.1378, allocations: 66.22 kB / 0.6816 GB, free: 15.11 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.1378, allocations: 3.938 kB / 0.6816 GB, free: 15.11 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.274e-06/0.1378, allocations: 0 / 0.6816 GB, free: 15.11 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.869e-05/0.1379, allocations: 8 kB / 0.6816 GB, free: 15.1 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.025e-05/0.1379, allocations: 23.98 kB / 0.6816 GB, free: 15.08 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003363/0.1383, allocations: 268.7 kB / 0.6819 GB, free: 14.77 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.5e-05/0.1383, allocations: 22.58 kB / 0.6819 GB, free: 14.73 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.862e-05/0.1383, allocations: 4.859 kB / 0.6819 GB, free: 14.73 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.282e-06/0.1383, allocations: 3.938 kB / 0.6819 GB, free: 14.72 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.525e-05/0.1384, allocations: 34.62 kB / 0.682 GB, free: 14.68 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.242e-06/0.1384, allocations: 0 / 0.682 GB, free: 14.68 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001869/0.1386, allocations: 75.23 kB / 0.682 GB, free: 14.59 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.924e-05/0.1386, allocations: 77.11 kB / 0.6821 GB, free: 14.5 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.36e-05/0.1387, allocations: 117.8 kB / 0.6822 GB, free: 14.38 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.478e-05/0.1388, allocations: 25.7 kB / 0.6822 GB, free: 14.34 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.334e-05/0.1388, allocations: 99.78 kB / 0.6823 GB, free: 14.24 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.208e-06/0.1388, allocations: 8 kB / 0.6823 GB, free: 14.23 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.981e-05/0.1389, allocations: 25.62 kB / 0.6824 GB, free: 14.2 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.139, allocations: 318.9 kB / 0.6827 GB, free: 13.88 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.947e-05/0.139, allocations: 15.98 kB / 0.6827 GB, free: 13.87 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.08e-05/0.1391, allocations: 58.92 kB / 0.6827 GB, free: 13.79 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001175/0.1392, allocations: 130.1 kB / 0.6829 GB, free: 13.62 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1392, allocations: 0 / 0.6829 GB, free: 13.62 MB / 494.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001583/0.1394, allocations: 123.2 kB / 0.683 GB, free: 13.49 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.209e-05/0.1395, allocations: 33.7 kB / 0.683 GB, free: 13.45 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.1395, allocations: 0 / 0.683 GB, free: 13.45 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.1395, allocations: 7.984 kB / 0.683 GB, free: 13.44 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.952e-05/0.1396, allocations: 15.98 kB / 0.683 GB, free: 13.43 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.65e-06/0.1396, allocations: 3.938 kB / 0.683 GB, free: 13.42 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.208e-05/0.1397, allocations: 11.84 kB / 0.6831 GB, free: 13.41 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.835e-05/0.1397, allocations: 11.94 kB / 0.6831 GB, free: 13.4 MB / 494.1 MB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.124e-05/0.1398, allocations: 153 kB / 0.6832 GB, free: 13.23 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.673e-05/0.1398, allocations: 4 kB / 0.6832 GB, free: 13.23 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.905e-05/0.1398, allocations: 3.531 kB / 0.6832 GB, free: 13.23 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-06/0.1398, allocations: 0 / 0.6832 GB, free: 13.23 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.1398, allocations: 0 / 0.6832 GB, free: 13.23 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.1399, allocations: 0 / 0.6832 GB, free: 13.23 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001475/0.14, allocations: 157.6 kB / 0.6834 GB, free: 13.02 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.14, allocations: 0 / 0.6834 GB, free: 13.02 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.01e-07/0.14, allocations: 0 / 0.6834 GB, free: 13.02 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.14, allocations: 4 kB / 0.6834 GB, free: 13.02 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.053e-05/0.14, allocations: 8 kB / 0.6834 GB, free: 13.01 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.195e-06/0.14, allocations: 480 / 0.6834 GB, free: 13.01 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.1401, allocations: 0 / 0.6834 GB, free: 13.01 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001357/0.1402, allocations: 173.1 kB / 0.6835 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.043e-05/0.1403, allocations: 81.02 kB / 0.6836 GB, free: 12.72 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.52e-05/0.1403, allocations: 4 kB / 0.6836 GB, free: 12.72 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.791e-05/0.1403, allocations: 0 / 0.6836 GB, free: 12.72 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.603e-05/0.1404, allocations: 8.016 kB / 0.6836 GB, free: 12.71 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.036e-06/0.1404, allocations: 4 kB / 0.6836 GB, free: 12.71 MB / 494.1 MB Notification: Performance of sorting global known variables: time 5.242e-05/0.1404, allocations: 95.2 kB / 0.6837 GB, free: 12.61 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1404, allocations: 0 / 0.6837 GB, free: 12.61 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002507/0.1407, allocations: 8 kB / 0.6837 GB, free: 12.61 MB / 494.1 MB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004576/0.1412, allocations: 0.7025 MB / 0.6844 GB, free: 11.87 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001451/0.1413, allocations: 91.27 kB / 0.6845 GB, free: 11.77 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1413, allocations: 0 / 0.6845 GB, free: 11.77 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 3.427e-05/0.1414, allocations: 55.41 kB / 0.6846 GB, free: 11.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00021/0.1416, allocations: 8.688 kB / 0.6846 GB, free: 11.7 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003944/0.142, allocations: 147.2 kB / 0.6847 GB, free: 11.51 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002525/0.1422, allocations: 0.6768 MB / 0.6854 GB, free: 10.81 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.871e-05/0.1423, allocations: 11.98 kB / 0.6854 GB, free: 10.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.198e-05/0.1424, allocations: 7.438 kB / 0.6854 GB, free: 10.79 MB / 494.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1424, allocations: 0 / 0.6854 GB, free: 10.79 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1943/0.3367, allocations: 1.427 MB / 0.6868 GB, free: 9.496 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.847/8.184, allocations: 15.8 kB / 0.6868 GB, free: 9.48 MB / 494.1 MB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_TrapezoidalIntegration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_TrapezoidalIntegration.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe 2>&1)