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/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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001066/0.001066, 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.001089/0.001089, allocations: 194.1 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.274/1.274, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002114/0.002114, allocations: 274.6 kB / 290.7 MB, free: 1.984 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9202/0.9202, allocations: 169.3 MB / 0.4982 GB, free: 13.87 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00202/0.00202, allocations: 98.34 kB / 0.5953 GB, free: 27.96 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1334, allocations: 86.98 MB / 0.6803 GB, free: 0.5703 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.002899/0.1364, allocations: 1.817 MB / 0.6821 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009649/0.1374, allocations: 0.5459 MB / 0.6826 GB, free: 14.2 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001336/0.1375, allocations: 3.938 kB / 0.6826 GB, free: 14.2 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000136/0.1377, allocations: 33.67 kB / 0.6826 GB, free: 14.17 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.387e-05/0.1378, allocations: 23.72 kB / 0.6827 GB, free: 14.14 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002294/0.138, allocations: 67.86 kB / 0.6827 GB, free: 14.08 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002048/0.1382, allocations: 168.3 kB / 0.6829 GB, free: 13.91 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001373/0.1384, allocations: 56.69 kB / 0.6829 GB, free: 13.86 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.448e-05/0.1385, allocations: 59.72 kB / 0.683 GB, free: 13.8 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.946e-05/0.1386, allocations: 55.64 kB / 0.683 GB, free: 13.75 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.431e-05/0.1386, allocations: 12.72 kB / 0.6831 GB, free: 13.74 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.019e-05/0.1386, allocations: 12 kB / 0.6831 GB, free: 13.73 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.224e-05/0.1386, allocations: 31.86 kB / 0.6831 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.091e-05/0.1387, allocations: 67.59 kB / 0.6832 GB, free: 13.63 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001391/0.1389, allocations: 115.6 kB / 0.6833 GB, free: 13.52 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1389, allocations: 0 / 0.6833 GB, free: 13.52 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1389, allocations: 0 / 0.6833 GB, free: 13.52 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.889e-06/0.1389, allocations: 0 / 0.6833 GB, free: 13.52 MB / 494.1 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.0006362/0.1395, allocations: 482.5 kB / 0.6837 GB, free: 13 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.879e-05/0.1396, allocations: 12.03 kB / 0.6837 GB, free: 12.98 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.011e-05/0.1396, allocations: 46.73 kB / 0.6838 GB, free: 12.93 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.525e-05/0.1397, allocations: 20.75 kB / 0.6838 GB, free: 12.91 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002252/0.1399, allocations: 235.9 kB / 0.684 GB, free: 12.64 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.442e-05/0.1399, allocations: 8.375 kB / 0.684 GB, free: 12.63 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.865e-05/0.14, allocations: 12.38 kB / 0.684 GB, free: 12.62 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002783/0.1402, allocations: 151.8 kB / 0.6842 GB, free: 12.45 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.1403, allocations: 0 / 0.6842 GB, free: 12.45 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.538e-05/0.1403, allocations: 7.984 kB / 0.6842 GB, free: 12.45 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.1403, allocations: 4 kB / 0.6842 GB, free: 12.44 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002271/0.1405, allocations: 71.84 kB / 0.6843 GB, free: 12.37 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008365/0.1414, allocations: 0.7314 MB / 0.685 GB, free: 11.57 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001442/0.1415, allocations: 62.47 kB / 0.685 GB, free: 11.5 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.894e-05/0.1416, allocations: 28.84 kB / 0.6851 GB, free: 11.47 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.851e-05/0.1417, allocations: 0 / 0.6851 GB, free: 11.47 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002505/0.1419, allocations: 126.7 kB / 0.6852 GB, free: 11.32 MB / 494.1 MB Notification: Performance of pre-optimization done (n=11): time 1.172e-06/0.1419, allocations: 4 kB / 0.6852 GB, free: 11.32 MB / 494.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004541/0.1424, allocations: 161.3 kB / 0.6854 GB, free: 11.16 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.311e-05/0.1425, allocations: 132.5 kB / 0.6855 GB, free: 11 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001573/0.1426, allocations: 203.1 kB / 0.6857 GB, free: 10.79 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.582e-05/0.1426, allocations: 25.7 kB / 0.6857 GB, free: 10.76 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.416e-05/0.1427, allocations: 132.2 kB / 0.6858 GB, free: 10.62 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.671e-05/0.1428, allocations: 31.55 kB / 0.6859 GB, free: 10.59 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.466e-05/0.1428, allocations: 45.61 kB / 0.6859 GB, free: 10.54 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.862e-05/0.1429, allocations: 330.8 kB / 0.6862 GB, free: 10.21 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000123/0.143, allocations: 51.84 kB / 0.6863 GB, free: 10.16 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001595/0.1432, allocations: 144.3 kB / 0.6864 GB, free: 9.969 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002832/0.1435, allocations: 202.3 kB / 0.6866 GB, free: 9.719 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1435, allocations: 0 / 0.6866 GB, free: 9.719 MB / 494.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003755/0.1439, allocations: 205.1 kB / 0.6868 GB, free: 9.512 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.1439, allocations: 10.53 kB / 0.6868 GB, free: 9.504 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.313e-06/0.1439, allocations: 8 kB / 0.6868 GB, free: 9.496 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.1439, allocations: 4 kB / 0.6868 GB, free: 9.492 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.1441, allocations: 31.92 kB / 0.6868 GB, free: 9.461 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.173e-05/0.1441, allocations: 15.92 kB / 0.6869 GB, free: 9.445 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001421/0.1442, allocations: 27.83 kB / 0.6869 GB, free: 9.418 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.173e-05/0.1443, allocations: 8 kB / 0.6869 GB, free: 9.41 MB / 494.1 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 (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 9.307e-05/0.1444, allocations: 134.5 kB / 0.687 GB, free: 9.27 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.034e-05/0.1444, allocations: 23.81 kB / 0.687 GB, free: 9.246 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.152e-05/0.1444, allocations: 29.38 kB / 0.6871 GB, free: 9.215 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.1444, allocations: 0 / 0.6871 GB, free: 9.215 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.1445, allocations: 4 kB / 0.6871 GB, free: 9.211 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.1445, allocations: 0 / 0.6871 GB, free: 9.211 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006707/0.1451, allocations: 0.5136 MB / 0.6876 GB, free: 8.641 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.1452, allocations: 0 / 0.6876 GB, free: 8.641 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001117/0.1453, allocations: 23.92 kB / 0.6876 GB, free: 8.617 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.1453, allocations: 4 kB / 0.6876 GB, free: 8.613 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/0.1453, allocations: 0 / 0.6876 GB, free: 8.613 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.179e-06/0.1453, allocations: 7.938 kB / 0.6876 GB, free: 8.605 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1453, allocations: 0 / 0.6876 GB, free: 8.605 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004503/0.1458, allocations: 364.1 kB / 0.688 GB, free: 8.227 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.808e-05/0.1458, allocations: 96.95 kB / 0.688 GB, free: 8.113 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.359e-05/0.1459, allocations: 0 / 0.688 GB, free: 8.113 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001684/0.146, allocations: 19.92 kB / 0.6881 GB, free: 8.094 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.59e-05/0.1461, allocations: 11.98 kB / 0.6881 GB, free: 8.082 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.836e-06/0.1461, allocations: 4 kB / 0.6881 GB, free: 8.078 MB / 494.1 MB Notification: Performance of sorting global known variables: time 9.722e-05/0.1462, allocations: 149.1 kB / 0.6882 GB, free: 7.934 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1462, allocations: 0 / 0.6882 GB, free: 7.934 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003227/0.1465, allocations: 35.84 kB / 0.6883 GB, free: 7.898 MB / 494.1 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,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.0006856/0.1472, allocations: 0.8952 MB / 0.6891 GB, free: 6.973 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002999/0.1475, allocations: 116.2 kB / 0.6892 GB, free: 6.859 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1476, allocations: 4 kB / 0.6892 GB, free: 6.855 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001347/0.1477, allocations: 47.91 kB / 0.6893 GB, free: 6.809 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00052/0.1482, allocations: 61.25 kB / 0.6894 GB, free: 6.75 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00224/0.1505, allocations: 2.274 MB / 0.6916 GB, free: 4.285 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002209/0.1507, allocations: 0.7203 MB / 0.6923 GB, free: 3.539 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.738e-05/0.1508, allocations: 21.55 kB / 0.6923 GB, free: 3.52 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.112e-05/0.1509, allocations: 47.42 kB / 0.6923 GB, free: 3.473 MB / 494.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1509, allocations: 4 kB / 0.6923 GB, free: 3.469 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3041/0.4549, allocations: 3.99 MB / 0.6962 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.784/8.239, allocations: 4.812 kB / 0.6962 GB, free: 15.6 MB / 0.4981 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/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)