Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7928/0.7928, allocations: 127.3 MB / 139.8 MB, free: 15.48 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001068/0.001068, allocations: 191.7 kB / 169.7 MB, free: 1.727 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.983/1.983, allocations: 205.1 MB / 404.5 MB, free: 1.66 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009108/0.000911, allocations: 100.8 kB / 481.8 MB, free: 4.305 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.134e-05/3.136e-05, allocations: 4 kB / 0.5533 GB, free: 54.76 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1755/0.1755, allocations: 76.76 MB / 0.6282 GB, free: 9.934 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5689/0.7444, allocations: 104.6 MB / 0.7304 GB, free: 8.766 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002551/0.7447, allocations: 80.38 kB / 0.7305 GB, free: 8.723 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009198/0.754, allocations: 3.514 MB / 0.7339 GB, free: 5.719 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.754, allocations: 0 / 0.7339 GB, free: 5.719 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.674e-05/0.754, allocations: 8 kB / 0.7339 GB, free: 5.711 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0005891/0.7546, allocations: 443 kB / 0.7343 GB, free: 5.246 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.7547, allocations: 8.031 kB / 0.7343 GB, free: 5.238 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.394e-05/0.7547, allocations: 45.05 kB / 0.7344 GB, free: 5.191 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.261e-05/0.7548, allocations: 19.77 kB / 0.7344 GB, free: 5.172 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002627/0.7551, allocations: 228.4 kB / 0.7346 GB, free: 4.918 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.7551, allocations: 11.81 kB / 0.7346 GB, free: 4.91 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.042e-05/0.7551, allocations: 11.75 kB / 0.7346 GB, free: 4.902 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002158/0.7553, allocations: 134.2 kB / 0.7348 GB, free: 4.777 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.7554, allocations: 4 kB / 0.7348 GB, free: 4.773 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.574e-05/0.7554, allocations: 7.875 kB / 0.7348 GB, free: 4.77 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/0.7554, allocations: 7.953 kB / 0.7348 GB, free: 4.762 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001019/0.7555, allocations: 42.56 kB / 0.7348 GB, free: 4.73 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009552/0.7565, allocations: 0.7556 MB / 0.7356 GB, free: 3.961 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.35e-05/0.7566, allocations: 40.62 kB / 0.7356 GB, free: 3.918 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.202e-05/0.7566, allocations: 22.73 kB / 0.7356 GB, free: 3.898 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.329e-05/0.7566, allocations: 0 / 0.7356 GB, free: 3.898 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001725/0.7568, allocations: 124.1 kB / 0.7357 GB, free: 3.766 MB / 490.7 MB Notification: Performance of pre-optimization done (n=11): time 1.113e-06/0.7568, allocations: 0 / 0.7357 GB, free: 3.766 MB / 490.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002309/0.7571, allocations: 109.6 kB / 0.7358 GB, free: 3.664 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.89e-05/0.7571, allocations: 131.6 kB / 0.736 GB, free: 3.508 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001531/0.7573, allocations: 178.5 kB / 0.7361 GB, free: 3.352 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.288e-05/0.7573, allocations: 25.7 kB / 0.7362 GB, free: 3.32 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.424e-05/0.7574, allocations: 129.5 kB / 0.7363 GB, free: 3.211 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.294e-05/0.7574, allocations: 38.5 kB / 0.7363 GB, free: 3.18 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.983e-06/0.7575, allocations: 7.5 kB / 0.7363 GB, free: 3.176 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.7576, allocations: 329 kB / 0.7367 GB, free: 2.852 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.405e-05/0.7577, allocations: 25.06 kB / 0.7367 GB, free: 2.832 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001099/0.7578, allocations: 131.7 kB / 0.7368 GB, free: 2.668 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.333e-05/0.7579, allocations: 46.83 kB / 0.7368 GB, free: 2.629 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.7579, allocations: 0 / 0.7368 GB, free: 2.629 MB / 490.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002445/0.7581, allocations: 179.9 kB / 0.737 GB, free: 2.473 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.7581, allocations: 8 kB / 0.737 GB, free: 2.465 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.7581, allocations: 4 kB / 0.737 GB, free: 2.461 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.161e-05/0.7582, allocations: 8.453 kB / 0.737 GB, free: 2.453 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001512/0.7583, allocations: 39.92 kB / 0.7371 GB, free: 2.414 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.7583, allocations: 7.938 kB / 0.7371 GB, free: 2.406 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001437/0.7585, allocations: 31.08 kB / 0.7371 GB, free: 2.379 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.521e-05/0.7585, allocations: 14.67 kB / 0.7371 GB, free: 2.367 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,intWitRes1.trigger,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 7.741e-05/0.7586, allocations: 127.1 kB / 0.7372 GB, free: 2.246 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.831e-05/0.7586, allocations: 15.81 kB / 0.7373 GB, free: 2.23 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.645e-05/0.7587, allocations: 27.83 kB / 0.7373 GB, free: 2.215 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.7587, allocations: 4 kB / 0.7373 GB, free: 2.211 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.7587, allocations: 3.953 kB / 0.7373 GB, free: 2.207 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.7587, allocations: 0 / 0.7373 GB, free: 2.207 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005696/0.7593, allocations: 492.4 kB / 0.7378 GB, free: 1.707 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.7593, allocations: 0 / 0.7378 GB, free: 1.707 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001247/0.7594, allocations: 35.17 kB / 0.7378 GB, free: 1.676 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.688e-06/0.7595, allocations: 3.953 kB / 0.7378 GB, free: 1.672 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.701e-05/0.7595, allocations: 7.984 kB / 0.7378 GB, free: 1.664 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.7595, allocations: 0 / 0.7378 GB, free: 1.664 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.7595, allocations: 0 / 0.7378 GB, free: 1.664 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003172/0.7598, allocations: 356 kB / 0.7382 GB, free: 1.309 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.591e-05/0.7599, allocations: 96.95 kB / 0.7382 GB, free: 1.195 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.526e-05/0.7599, allocations: 6.875 kB / 0.7382 GB, free: 1.191 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001716/0.7601, allocations: 23.62 kB / 0.7383 GB, free: 1.172 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.978e-05/0.7602, allocations: 11.98 kB / 0.7383 GB, free: 1.16 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.418e-06/0.7602, allocations: 4 kB / 0.7383 GB, free: 1.156 MB / 490.7 MB Notification: Performance of sorting global known variables: time 9.911e-05/0.7603, allocations: 146.5 kB / 0.7384 GB, free: 1.031 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.7603, allocations: 3.938 kB / 0.7384 GB, free: 1.027 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002925/0.7606, allocations: 35.38 kB / 0.7385 GB, free: 0.9961 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,intWitRes1.trigger,$whenCondition2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0006312/0.7612, allocations: 1.099 MB / 0.7395 GB, free: 15.89 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0001727/0.7614, allocations: 89.66 kB / 0.7396 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.7614, allocations: 4 kB / 0.7396 GB, free: 15.81 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 8.022e-05/0.7615, allocations: 42.98 kB / 0.7397 GB, free: 15.78 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004072/0.7619, allocations: 52.97 kB / 0.7397 GB, free: 15.74 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000663/0.7626, allocations: 322.1 kB / 0.74 GB, free: 15.41 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002619/0.7629, allocations: 0.7246 MB / 0.7407 GB, free: 14.66 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 7.675e-05/0.763, allocations: 25.67 kB / 0.7408 GB, free: 14.63 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.395e-05/0.763, allocations: 46.8 kB / 0.7408 GB, free: 14.61 MB / 0.4948 GB Notification: Performance of SimCode: time 2.41e-07/0.763, allocations: 0 / 0.7408 GB, free: 14.61 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01573/0.7788, allocations: 3.539 MB / 0.7443 GB, free: 11.21 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001876/0.779, allocations: 169.2 kB / 0.7444 GB, free: 10.98 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.788/2.567, allocations: 0 / 0.7444 GB, free: 10.98 MB / 0.4948 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegratorWithReset.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)