Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7232/0.7232, allocations: 141.8 MB / 149.1 MB, free: 7.438 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001089/0.001089, allocations: 177.8 kB / 181.9 MB, free: 4.793 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.261/1.261, allocations: 221.3 MB / 436 MB, free: 12.58 MB / 346.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009235/0.0009235, allocations: 102.5 kB / 0.507 GB, free: 6.035 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001788/0.001789, allocations: 283.7 kB / 0.5884 GB, free: 2.836 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3459/0.3478, allocations: 89.62 MB / 0.676 GB, free: 164.6 MB / 0.5419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.4901, allocations: 82.8 MB / 0.7568 GB, free: 110 MB / 0.5419 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1098/0.6, allocations: 109.8 MB / 0.864 GB, free: 64 kB / 0.5419 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002048/0.6002, allocations: 73.98 kB / 0.8641 GB, free: 15.99 MB / 0.5575 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.009859/0.6101, allocations: 3.645 MB / 0.8676 GB, free: 12.29 MB / 0.5575 GB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.6102, allocations: 12 kB / 0.8677 GB, free: 12.28 MB / 0.5575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.822e-05/0.6102, allocations: 19.72 kB / 0.8677 GB, free: 12.26 MB / 0.5575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002491/0.6105, allocations: 218.7 kB / 0.8679 GB, free: 12 MB / 0.5575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.6105, allocations: 8 kB / 0.8679 GB, free: 12 MB / 0.5575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.993e-05/0.6105, allocations: 15.98 kB / 0.8679 GB, free: 11.98 MB / 0.5575 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001023/0.6106, allocations: 28 kB / 0.8679 GB, free: 11.95 MB / 0.5575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001642/0.6108, allocations: 121.9 kB / 0.8681 GB, free: 11.81 MB / 0.5575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.944e-06/0.6108, allocations: 0 / 0.8681 GB, free: 11.81 MB / 0.5575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.6108, allocations: 0 / 0.8681 GB, free: 11.81 MB / 0.5575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.6109, allocations: 12 kB / 0.8681 GB, free: 11.8 MB / 0.5575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008601/0.6117, allocations: 0.7046 MB / 0.8688 GB, free: 11.04 MB / 0.5575 GB Notification: Performance of preOpt comSubExp (simulation): time 6.245e-05/0.6118, allocations: 30.58 kB / 0.8688 GB, free: 11 MB / 0.5575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.303e-05/0.6118, allocations: 28.86 kB / 0.8688 GB, free: 10.97 MB / 0.5575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.093e-05/0.6119, allocations: 0 / 0.8688 GB, free: 10.97 MB / 0.5575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001187/0.612, allocations: 107.3 kB / 0.8689 GB, free: 10.84 MB / 0.5575 GB Notification: Performance of pre-optimization done (n=11): time 9.92e-07/0.612, allocations: 0 / 0.8689 GB, free: 10.84 MB / 0.5575 GB Notification: Performance of matching and sorting (n=11): time 0.000198/0.6122, allocations: 97.36 kB / 0.869 GB, free: 10.74 MB / 0.5575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.989e-05/0.6123, allocations: 136.6 kB / 0.8691 GB, free: 10.58 MB / 0.5575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001294/0.6124, allocations: 153.5 kB / 0.8693 GB, free: 10.42 MB / 0.5575 GB Notification: Performance of collectPreVariables (initialization): time 1.761e-05/0.6124, allocations: 25.7 kB / 0.8693 GB, free: 10.39 MB / 0.5575 GB Notification: Performance of collectInitialEqns (initialization): time 6.189e-05/0.6125, allocations: 127.8 kB / 0.8694 GB, free: 10.26 MB / 0.5575 GB Notification: Performance of collectInitialBindings (initialization): time 2.96e-05/0.6125, allocations: 23.62 kB / 0.8695 GB, free: 10.24 MB / 0.5575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.131e-06/0.6126, allocations: 0 / 0.8695 GB, free: 10.24 MB / 0.5575 GB Notification: Performance of setup shared object (initialization): time 0.0001374/0.6127, allocations: 330.8 kB / 0.8698 GB, free: 9.906 MB / 0.5575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.242e-05/0.6128, allocations: 24.38 kB / 0.8698 GB, free: 9.879 MB / 0.5575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.665e-05/0.6129, allocations: 119.2 kB / 0.8699 GB, free: 9.711 MB / 0.5575 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.607e-05/0.6129, allocations: 43.92 kB / 0.8699 GB, free: 9.668 MB / 0.5575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.6129, allocations: 4 kB / 0.8699 GB, free: 9.664 MB / 0.5575 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002304/0.6132, allocations: 153.5 kB / 0.8701 GB, free: 9.508 MB / 0.5575 GB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.6132, allocations: 11.97 kB / 0.8701 GB, free: 9.496 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.6132, allocations: 4 kB / 0.8701 GB, free: 9.492 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.6132, allocations: 8 kB / 0.8701 GB, free: 9.484 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.6134, allocations: 39.91 kB / 0.8702 GB, free: 9.445 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.6134, allocations: 4 kB / 0.8702 GB, free: 9.441 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001558/0.6135, allocations: 35.83 kB / 0.8702 GB, free: 9.406 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.257e-05/0.6136, allocations: 8 kB / 0.8702 GB, free: 9.398 MB / 0.5575 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 () * 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 8.064e-05/0.6137, allocations: 116.9 kB / 0.8703 GB, free: 9.277 MB / 0.5575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.909e-05/0.6137, allocations: 19.8 kB / 0.8703 GB, free: 9.258 MB / 0.5575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.138e-05/0.6137, allocations: 17.41 kB / 0.8703 GB, free: 9.246 MB / 0.5575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.6137, allocations: 4 kB / 0.8704 GB, free: 9.242 MB / 0.5575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.6138, allocations: 0 / 0.8704 GB, free: 9.242 MB / 0.5575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.6138, allocations: 8 kB / 0.8704 GB, free: 9.234 MB / 0.5575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005632/0.6143, allocations: 462.1 kB / 0.8708 GB, free: 8.738 MB / 0.5575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-06/0.6144, allocations: 0 / 0.8708 GB, free: 8.738 MB / 0.5575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001362/0.6145, allocations: 27.92 kB / 0.8708 GB, free: 8.711 MB / 0.5575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.6145, allocations: 0 / 0.8708 GB, free: 8.711 MB / 0.5575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.595e-05/0.6145, allocations: 4 kB / 0.8708 GB, free: 8.707 MB / 0.5575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.6145, allocations: 0 / 0.8708 GB, free: 8.707 MB / 0.5575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.758e-06/0.6145, allocations: 4 kB / 0.8708 GB, free: 8.703 MB / 0.5575 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000297/0.6148, allocations: 353.2 kB / 0.8712 GB, free: 8.316 MB / 0.5575 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004304/0.6153, allocations: 0.7402 MB / 0.8719 GB, free: 7.531 MB / 0.5575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.531e-05/0.6153, allocations: 96.92 kB / 0.872 GB, free: 7.418 MB / 0.5575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.663e-05/0.6154, allocations: 0 / 0.872 GB, free: 7.418 MB / 0.5575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001935/0.6156, allocations: 23.89 kB / 0.872 GB, free: 7.395 MB / 0.5575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.57e-05/0.6156, allocations: 23.91 kB / 0.872 GB, free: 7.371 MB / 0.5575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.458e-06/0.6156, allocations: 4 kB / 0.872 GB, free: 7.367 MB / 0.5575 GB Notification: Performance of sort global known variables: time 7.708e-05/0.6157, allocations: 116.5 kB / 0.8721 GB, free: 7.254 MB / 0.5575 GB Notification: Performance of remove unused functions: time 0.0008836/0.6166, allocations: 23.94 kB / 0.8722 GB, free: 7.23 MB / 0.5575 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 () * 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.0001499/0.6168, allocations: 115.2 kB / 0.8723 GB, free: 7.105 MB / 0.5575 GB Notification: Performance of simCode: created initialization part: time 0.0001623/0.6169, allocations: 75.88 kB / 0.8724 GB, free: 7.031 MB / 0.5575 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.617, allocations: 3.938 kB / 0.8724 GB, free: 7.027 MB / 0.5575 GB Notification: Performance of simCode: created simulation system equations: time 7.275e-05/0.617, allocations: 31.98 kB / 0.8724 GB, free: 6.996 MB / 0.5575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004445/0.6175, allocations: 55.75 kB / 0.8724 GB, free: 6.945 MB / 0.5575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00049/0.618, allocations: 239.9 kB / 0.8727 GB, free: 6.68 MB / 0.5575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003828/0.6184, allocations: 0.7513 MB / 0.8734 GB, free: 5.902 MB / 0.5575 GB Notification: Performance of SimCode: time 1.583e-06/0.6184, allocations: 7.938 kB / 0.8734 GB, free: 5.895 MB / 0.5575 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)