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/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/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001115/0.001116, 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.00118/0.00118, allocations: 194.5 kB / 16.53 MB, free: 6.699 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.465/1.465, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 1.068/1.068, allocations: 143 MB / 433.4 MB, free: 11.52 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 63.91 kB / 0.5143 GB, free: 11.59 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2238/0.2253, allocations: 82.04 MB / 0.5944 GB, free: 9.512 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset): time 0.006448/0.2318, allocations: 1.809 MB / 0.5962 GB, free: 7.688 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.00198/0.2338, allocations: 0.5376 MB / 0.5967 GB, free: 7.145 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003489/0.2342, allocations: 4 kB / 0.5967 GB, free: 7.141 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0003228/0.2346, allocations: 19.73 kB / 0.5967 GB, free: 7.121 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002818/0.2349, allocations: 31.72 kB / 0.5967 GB, free: 7.09 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004881/0.2354, allocations: 59.86 kB / 0.5968 GB, free: 7.031 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0005388/0.236, allocations: 171.4 kB / 0.597 GB, free: 6.863 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003083/0.2363, allocations: 57.64 kB / 0.597 GB, free: 6.809 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002019/0.2366, allocations: 51.78 kB / 0.5971 GB, free: 6.758 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002009/0.2368, allocations: 59.64 kB / 0.5971 GB, free: 6.699 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.274e-05/0.2369, allocations: 12 kB / 0.5971 GB, free: 6.688 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 4.875e-05/0.2369, allocations: 8 kB / 0.5971 GB, free: 6.68 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.755e-05/0.237, allocations: 31.84 kB / 0.5972 GB, free: 6.648 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001617/0.2372, allocations: 67.55 kB / 0.5972 GB, free: 6.582 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004181/0.2376, allocations: 131.8 kB / 0.5974 GB, free: 6.453 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.2377, allocations: 0 / 0.5974 GB, free: 6.453 MB / 0.4981 GB Notification: Performance of FrontEnd: time 5.52e-06/0.2377, allocations: 3.984 kB / 0.5974 GB, free: 6.449 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.717e-05/0.2377, allocations: 0 / 0.5974 GB, free: 6.449 MB / 0.4981 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.001555/0.2393, allocations: 474.7 kB / 0.5978 GB, free: 5.938 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 7.786e-05/0.2394, allocations: 12.03 kB / 0.5978 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001129/0.2395, allocations: 42.75 kB / 0.5979 GB, free: 5.875 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001111/0.2396, allocations: 20.73 kB / 0.5979 GB, free: 5.855 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006013/0.2403, allocations: 227.9 kB / 0.5981 GB, free: 5.594 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.189e-05/0.2403, allocations: 12.31 kB / 0.5981 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.787e-05/0.2404, allocations: 16.31 kB / 0.5981 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005738/0.241, allocations: 150.6 kB / 0.5983 GB, free: 5.398 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.241, allocations: 7.938 kB / 0.5983 GB, free: 5.391 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.603e-05/0.2411, allocations: 8 kB / 0.5983 GB, free: 5.383 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.2411, allocations: 4 kB / 0.5983 GB, free: 5.379 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004435/0.2415, allocations: 63.89 kB / 0.5984 GB, free: 5.316 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001761/0.2433, allocations: 0.7431 MB / 0.5991 GB, free: 4.508 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002581/0.2436, allocations: 46.55 kB / 0.5991 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002087/0.2438, allocations: 36.84 kB / 0.5992 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.439e-05/0.2439, allocations: 0 / 0.5992 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005406/0.2444, allocations: 126.7 kB / 0.5993 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 3.026e-06/0.2445, allocations: 0 / 0.5993 GB, free: 4.266 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0008656/0.2453, allocations: 169.3 kB / 0.5994 GB, free: 4.094 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001222/0.2455, allocations: 132.5 kB / 0.5996 GB, free: 3.934 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003067/0.2458, allocations: 199.6 kB / 0.5998 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.194e-05/0.2458, allocations: 33.7 kB / 0.5998 GB, free: 3.691 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001587/0.246, allocations: 128.1 kB / 0.5999 GB, free: 3.562 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.327e-05/0.2461, allocations: 43.61 kB / 0.6 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000102/0.2462, allocations: 41.7 kB / 0.6 GB, free: 3.473 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001881/0.2464, allocations: 330.8 kB / 0.6003 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000224/0.2467, allocations: 35.97 kB / 0.6003 GB, free: 3.105 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000343/0.247, allocations: 153.5 kB / 0.6005 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000613/0.2477, allocations: 194.5 kB / 0.6007 GB, free: 2.664 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.19e-05/0.2477, allocations: 4 kB / 0.6007 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0007913/0.2485, allocations: 209 kB / 0.6009 GB, free: 2.449 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 3.018e-05/0.2485, allocations: 8 kB / 0.6009 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.187e-05/0.2486, allocations: 4.5 kB / 0.6009 GB, free: 2.438 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.209e-05/0.2486, allocations: 11.94 kB / 0.6009 GB, free: 2.426 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000221/0.2489, allocations: 35.91 kB / 0.6009 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.593e-05/0.2489, allocations: 4 kB / 0.6009 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003094/0.2492, allocations: 27.83 kB / 0.601 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.469e-05/0.2493, allocations: 11.94 kB / 0.601 GB, free: 2.348 MB / 0.4981 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 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002136/0.2495, allocations: 140.2 kB / 0.6011 GB, free: 2.203 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.618e-05/0.2496, allocations: 15.81 kB / 0.6011 GB, free: 2.188 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.045e-05/0.2497, allocations: 25.39 kB / 0.6012 GB, free: 2.156 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.787e-06/0.2497, allocations: 7.938 kB / 0.6012 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-05/0.2497, allocations: 0 / 0.6012 GB, free: 2.148 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.268e-05/0.2497, allocations: 4 kB / 0.6012 GB, free: 2.145 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001391/0.2511, allocations: 0.5054 MB / 0.6017 GB, free: 1.582 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5e-06/0.2512, allocations: 4 kB / 0.6017 GB, free: 1.578 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002168/0.2514, allocations: 15.98 kB / 0.6017 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.281e-06/0.2514, allocations: 3.938 kB / 0.6017 GB, free: 1.559 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.497e-05/0.2515, allocations: 8 kB / 0.6017 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.071e-05/0.2515, allocations: 7.922 kB / 0.6017 GB, free: 1.543 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-05/0.2515, allocations: 7.938 kB / 0.6017 GB, free: 1.535 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009643/0.2525, allocations: 356.1 kB / 0.602 GB, free: 1.164 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.94e-05/0.2526, allocations: 88.92 kB / 0.6021 GB, free: 1.059 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.314e-05/0.2527, allocations: 8.312 kB / 0.6021 GB, free: 1.051 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003159/0.253, allocations: 19.97 kB / 0.6022 GB, free: 1.031 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.408e-05/0.2531, allocations: 15.92 kB / 0.6022 GB, free: 1.016 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.02e-05/0.2531, allocations: 11.98 kB / 0.6022 GB, free: 1.004 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002025/0.2534, allocations: 140.4 kB / 0.6023 GB, free: 0.8672 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.5e-07/0.2534, allocations: 0 / 0.6023 GB, free: 0.8672 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0006486/0.254, allocations: 28 kB / 0.6023 GB, free: 0.8398 MB / 0.4981 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,sampleTrigger.y,$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 (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.3809/0.635, allocations: 0.8965 MB / 0.6032 GB, free: 43.55 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004266/0.6355, allocations: 119.9 kB / 0.6033 GB, free: 43.55 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.6355, allocations: 0 / 0.6033 GB, free: 43.55 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000139/0.6356, allocations: 48.12 kB / 0.6034 GB, free: 43.55 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006764/0.6363, allocations: 64.36 kB / 0.6034 GB, free: 43.55 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001845/0.6382, allocations: 2.262 MB / 0.6057 GB, free: 41.95 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001146/0.6383, allocations: 0.7233 MB / 0.6064 GB, free: 41.25 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.024e-05/0.6384, allocations: 25.03 kB / 0.6064 GB, free: 41.25 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.064e-05/0.6384, allocations: 49.02 kB / 0.6064 GB, free: 41.24 MB / 0.4981 GB Notification: Performance of SimCode: time 6.62e-07/0.6384, allocations: 2.594 kB / 0.6064 GB, free: 41.24 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04343/0.6819, allocations: 3.987 MB / 0.6103 GB, free: 40.88 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.772/8.454, allocations: 9.188 kB / 0.6103 GB, free: 40.87 MB / 0.4981 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/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)