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.7539/0.7539, allocations: 128.7 MB / 143.7 MB, free: 2.305 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001359/0.001359, allocations: 171.3 kB / 173.7 MB, free: 6.133 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.708/1.708, allocations: 205.4 MB / 409 MB, free: 10.5 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.0008961/0.000896, allocations: 95.84 kB / 486.5 MB, free: 13.02 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003696/0.0003695, allocations: 8.969 kB / 0.5604 GB, free: 97.49 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1528/0.1531, allocations: 76.77 MB / 0.6354 GB, free: 30.48 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1329/0.2861, allocations: 104.7 MB / 0.7376 GB, free: 5.648 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002353/0.2863, allocations: 79.95 kB / 0.7377 GB, free: 5.57 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.009392/0.2957, allocations: 3.53 MB / 0.7412 GB, free: 2.023 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.663e-06/0.2958, allocations: 0 / 0.7412 GB, free: 2.023 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 1.456e-05/0.2958, allocations: 4 kB / 0.7412 GB, free: 2.02 MB / 0.5105 GB 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.0006361/0.2964, allocations: 474.5 kB / 0.7416 GB, free: 1.512 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.2965, allocations: 8.031 kB / 0.7416 GB, free: 1.504 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.946e-05/0.2966, allocations: 46.55 kB / 0.7417 GB, free: 1.449 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.677e-05/0.2966, allocations: 23.77 kB / 0.7417 GB, free: 1.426 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002566/0.2969, allocations: 230.6 kB / 0.7419 GB, free: 1.16 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.463e-05/0.2969, allocations: 8 kB / 0.7419 GB, free: 1.152 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.022e-05/0.2969, allocations: 19.98 kB / 0.7419 GB, free: 1.133 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002865/0.2972, allocations: 153.1 kB / 0.7421 GB, free: 0.9648 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.2972, allocations: 3.984 kB / 0.7421 GB, free: 0.9609 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.305e-05/0.2973, allocations: 0 / 0.7421 GB, free: 0.9609 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.2973, allocations: 11.95 kB / 0.7421 GB, free: 0.9492 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002237/0.2975, allocations: 83.88 kB / 0.7422 GB, free: 0.8672 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009241/0.2984, allocations: 0.7549 MB / 0.7429 GB, free: 48 kB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.2944/0.5928, allocations: 50.5 kB / 0.743 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 5.204e-05/0.5929, allocations: 0 / 0.743 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003773/0.5933, allocations: 122.1 kB / 0.7431 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=11): time 1.634e-06/0.5933, allocations: 0.6562 kB / 0.7431 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=11): time 0.0005304/0.5939, allocations: 193.1 kB / 0.7433 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.846e-05/0.5939, allocations: 130.2 kB / 0.7434 GB, free: 108.3 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001683/0.5941, allocations: 175.2 kB / 0.7435 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.543e-05/0.5941, allocations: 30.42 kB / 0.7436 GB, free: 108.2 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 6.032e-05/0.5942, allocations: 131.8 kB / 0.7437 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 2.914e-05/0.5942, allocations: 36.92 kB / 0.7437 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.147e-06/0.5943, allocations: 8.031 kB / 0.7437 GB, free: 108.1 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 6.042e-05/0.5943, allocations: 333.2 kB / 0.7441 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000122/0.5945, allocations: 42.83 kB / 0.7441 GB, free: 107.8 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.5946, allocations: 149 kB / 0.7442 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001324/0.5948, allocations: 62.12 kB / 0.7443 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.5948, allocations: 1.219 kB / 0.7443 GB, free: 107.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003518/0.5951, allocations: 219.2 kB / 0.7445 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.5951, allocations: 10.3 kB / 0.7445 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.5952, allocations: 9.859 kB / 0.7445 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.5952, allocations: 4.75 kB / 0.7445 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001383/0.5953, allocations: 36.77 kB / 0.7446 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.5953, allocations: 7.531 kB / 0.7446 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001479/0.5955, allocations: 30.08 kB / 0.7446 GB, free: 107.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.486e-05/0.5955, allocations: 7.438 kB / 0.7446 GB, free: 107.6 MB / 0.5105 GB 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 () * Number of clocked 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 9.678e-05/0.5956, allocations: 138.8 kB / 0.7447 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.667e-05/0.5957, allocations: 18.28 kB / 0.7448 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.43e-05/0.5957, allocations: 25.84 kB / 0.7448 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.01e-06/0.5957, allocations: 2.781 kB / 0.7448 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.5957, allocations: 4.781 kB / 0.7448 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-06/0.5957, allocations: 1.25 kB / 0.7448 GB, free: 107.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006853/0.5964, allocations: 0.5322 MB / 0.7453 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.5964, allocations: 3.469 kB / 0.7453 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00012/0.5966, allocations: 18.41 kB / 0.7453 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.5966, allocations: 0 / 0.7453 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.5966, allocations: 5.219 kB / 0.7453 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.5966, allocations: 3.5 kB / 0.7453 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.5966, allocations: 1.875 kB / 0.7454 GB, free: 107.1 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004536/0.5971, allocations: 405.7 kB / 0.7457 GB, free: 106.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 3.916e-05/0.5971, allocations: 94.55 kB / 0.7458 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.726e-05/0.5972, allocations: 5.75 kB / 0.7458 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001751/0.5973, allocations: 20.94 kB / 0.7459 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.449e-05/0.5974, allocations: 18.12 kB / 0.7459 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.05e-05/0.5974, allocations: 6.406 kB / 0.7459 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 8.075e-05/0.5975, allocations: 145 kB / 0.746 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5975, allocations: 0 / 0.746 GB, free: 106.6 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0003152/0.5978, allocations: 33.69 kB / 0.746 GB, free: 106.6 MB / 0.5105 GB 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 () * Number of clocked 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.0006746/0.5985, allocations: 1.16 MB / 0.7472 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0003074/0.5988, allocations: 130.1 kB / 0.7473 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.5989, allocations: 0 / 0.7473 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001378/0.599, allocations: 53.31 kB / 0.7474 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004352/0.5994, allocations: 65.08 kB / 0.7474 GB, free: 105.6 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00206/0.6015, allocations: 3.497 MB / 0.7508 GB, free: 102.5 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001708/0.6017, allocations: 0.7292 MB / 0.7515 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 8.573e-05/0.6018, allocations: 18.58 kB / 0.7516 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.823e-05/0.6019, allocations: 47.31 kB / 0.7516 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of SimCode: time 5.61e-07/0.6019, allocations: 1.062 kB / 0.7516 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01564/0.6175, allocations: 3.574 MB / 0.7551 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000199/0.6178, allocations: 186.4 kB / 0.7553 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.698/2.316, allocations: 6.875 kB / 0.7553 GB, free: 101.3 MB / 0.5105 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)