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: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 107.5 kB / 16.41 MB, free: 6.496 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.001478/0.001478, allocations: 189.5 kB / 17.34 MB, free: 5.766 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.267/1.267, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002055/0.002055, allocations: 287 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.908/0.908, allocations: 169.2 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002068/0.002068, allocations: 99.84 kB / 0.6822 GB, free: 6.855 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3897/0.3918, allocations: 86.96 MB / 0.7671 GB, free: 3.824 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001517/0.3934, allocations: 0.5863 MB / 0.7677 GB, free: 3.242 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0002074/0.3936, allocations: 39.88 kB / 0.7677 GB, free: 3.203 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.035e-05/0.3936, allocations: 0 / 0.7677 GB, free: 3.203 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.209e-05/0.3937, allocations: 3.938 kB / 0.7677 GB, free: 3.199 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.559e-05/0.3937, allocations: 0 / 0.7677 GB, free: 3.199 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.00018/0.3939, allocations: 11.98 kB / 0.7677 GB, free: 3.188 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.688e-05/0.394, allocations: 8 kB / 0.7677 GB, free: 3.18 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.045e-05/0.394, allocations: 0 / 0.7677 GB, free: 3.18 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 1.71e-05/0.394, allocations: 4 kB / 0.7677 GB, free: 3.176 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 3.873e-05/0.3941, allocations: 7.922 kB / 0.7677 GB, free: 3.168 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.013e-05/0.3941, allocations: 0 / 0.7677 GB, free: 3.168 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 7.374e-05/0.3942, allocations: 27.97 kB / 0.7678 GB, free: 3.141 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 2.631e-05/0.3942, allocations: 4 kB / 0.7678 GB, free: 3.137 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.153e-05/0.3942, allocations: 3.938 kB / 0.7678 GB, free: 3.133 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 8.294e-05/0.3943, allocations: 23.92 kB / 0.7678 GB, free: 3.109 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3943, allocations: 0 / 0.7678 GB, free: 3.109 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.374e-06/0.3943, allocations: 3.938 kB / 0.7678 GB, free: 3.105 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.512e-06/0.3943, allocations: 7.938 kB / 0.7678 GB, free: 3.098 MB / 0.5294 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.000276/0.3946, allocations: 352.9 kB / 0.7681 GB, free: 2.699 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 2.991e-05/0.3947, allocations: 8.031 kB / 0.7681 GB, free: 2.691 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.216e-05/0.3947, allocations: 8.844 kB / 0.7681 GB, free: 2.684 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.064e-05/0.3948, allocations: 164.4 kB / 0.7683 GB, free: 2.484 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.937e-06/0.3948, allocations: 384 / 0.7683 GB, free: 2.484 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.214e-06/0.3948, allocations: 384 / 0.7683 GB, free: 2.484 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001107/0.3949, allocations: 58.23 kB / 0.7684 GB, free: 2.422 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.111e-06/0.3949, allocations: 192 / 0.7684 GB, free: 2.422 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.926e-06/0.3949, allocations: 11.94 kB / 0.7684 GB, free: 2.41 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.05e-05/0.395, allocations: 4 kB / 0.7684 GB, free: 2.406 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.204e-05/0.395, allocations: 27.92 kB / 0.7684 GB, free: 2.379 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002755/0.3953, allocations: 260.9 kB / 0.7687 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 3.564e-05/0.3953, allocations: 18.58 kB / 0.7687 GB, free: 2.047 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.467e-05/0.3954, allocations: 4.859 kB / 0.7687 GB, free: 2.039 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 4.749e-06/0.3954, allocations: 4.062 kB / 0.7687 GB, free: 2.035 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.275e-05/0.3954, allocations: 34.56 kB / 0.7687 GB, free: 1.992 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.3954, allocations: 0 / 0.7687 GB, free: 1.992 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1): time 0.0001458/0.3955, allocations: 75.23 kB / 0.7688 GB, free: 1.906 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.677e-05/0.3956, allocations: 81.11 kB / 0.7689 GB, free: 1.809 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.251e-05/0.3957, allocations: 109.8 kB / 0.769 GB, free: 1.691 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.135e-05/0.3957, allocations: 25.7 kB / 0.769 GB, free: 1.66 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 4.448e-05/0.3957, allocations: 110.3 kB / 0.7691 GB, free: 1.551 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 7.423e-06/0.3958, allocations: 8.031 kB / 0.7691 GB, free: 1.543 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.891e-05/0.3958, allocations: 21.72 kB / 0.7691 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 8.576e-05/0.3959, allocations: 318.8 kB / 0.7694 GB, free: 1.195 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.328e-05/0.3959, allocations: 12 kB / 0.7694 GB, free: 1.184 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.889e-05/0.396, allocations: 62.92 kB / 0.7695 GB, free: 1.098 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.099e-05/0.3961, allocations: 134.1 kB / 0.7696 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.3961, allocations: 0 / 0.7696 GB, free: 0.9297 MB / 0.5294 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001316/0.3962, allocations: 119.2 kB / 0.7697 GB, free: 0.8008 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.783e-05/0.3962, allocations: 36.34 kB / 0.7698 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.401e-06/0.3963, allocations: 4 kB / 0.7698 GB, free: 0.7578 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.3963, allocations: 3.984 kB / 0.7698 GB, free: 0.7539 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.284e-05/0.3963, allocations: 19.94 kB / 0.7698 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.3964, allocations: 4.188 kB / 0.7698 GB, free: 0.7305 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.453e-05/0.3964, allocations: 19.91 kB / 0.7698 GB, free: 0.7109 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.3964, allocations: 4 kB / 0.7698 GB, free: 0.707 MB / 0.5294 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.736e-05/0.3965, allocations: 147.4 kB / 0.77 GB, free: 0.5469 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.505e-05/0.3966, allocations: 4 kB / 0.77 GB, free: 0.543 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.078e-05/0.3966, allocations: 7.531 kB / 0.77 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.203e-06/0.3966, allocations: 0 / 0.77 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.3966, allocations: 0 / 0.77 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.3966, allocations: 0 / 0.77 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001265/0.3967, allocations: 165.5 kB / 0.7701 GB, free: 332 kB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.3967, allocations: 0 / 0.7701 GB, free: 332 kB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-07/0.3967, allocations: 0 / 0.7701 GB, free: 332 kB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.352e-06/0.3967, allocations: 0 / 0.7701 GB, free: 332 kB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-06/0.3967, allocations: 0 / 0.7701 GB, free: 332 kB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.3968, allocations: 0 / 0.7701 GB, free: 332 kB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3968, allocations: 0 / 0.7701 GB, free: 332 kB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.947e-05/0.3969, allocations: 173.1 kB / 0.7703 GB, free: 136 kB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 3.417e-05/0.3969, allocations: 89.05 kB / 0.7704 GB, free: 28 kB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.193e-05/0.3969, allocations: 3.984 kB / 0.7704 GB, free: 24 kB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.207e-05/0.397, allocations: 0 / 0.7704 GB, free: 24 kB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.357e-06/0.397, allocations: 0 / 0.7704 GB, free: 24 kB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.38e-06/0.397, allocations: 8 kB / 0.7704 GB, free: 16 kB / 0.5294 GB Notification: Performance of sorting global known variables: time 4.969e-05/0.3971, allocations: 87.27 kB / 0.7705 GB, free: 15.93 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3971, allocations: 0 / 0.7705 GB, free: 15.93 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002315/0.3973, allocations: 11.94 kB / 0.7705 GB, free: 15.92 MB / 0.545 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 (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.0001297/0.3974, allocations: 111.2 kB / 0.7706 GB, free: 15.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001138/0.3976, allocations: 83.33 kB / 0.7707 GB, free: 15.71 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.3976, allocations: 3.938 kB / 0.7707 GB, free: 15.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 3.035e-05/0.3976, allocations: 55.41 kB / 0.7707 GB, free: 15.64 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001988/0.3978, allocations: 10.73 kB / 0.7707 GB, free: 15.63 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002073/0.398, allocations: 134.8 kB / 0.7709 GB, free: 15.46 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002027/0.3982, allocations: 0.6773 MB / 0.7715 GB, free: 14.76 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.325e-05/0.3982, allocations: 15.44 kB / 0.7716 GB, free: 14.75 MB / 0.545 GB Notification: Performance of SimCode: time 1.843e-06/0.3983, allocations: 0 / 0.7716 GB, free: 14.75 MB / 0.545 GB Notification: Performance of Templates: time 0.001806/0.4001, allocations: 0.6918 MB / 0.7722 GB, free: 14.06 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.makefile (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 & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe 2>&1)