Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IDEAS_dev_IDEAS_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.0009866/0.0009895, allocations: 90.67 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.005517/0.005517, allocations: 172.8 kB / 16.26 MB, free: 6.613 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.19/1.19, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8435/0.8435, allocations: 135.3 MB / 426.7 MB, free: 14.27 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002895/0.0002897, allocations: 12.75 kB / 0.5077 GB, free: 4.672 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1264/0.1267, allocations: 82.31 MB / 0.5881 GB, free: 2.539 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.001645/0.1283, allocations: 1.515 MB / 0.5896 GB, free: 1.008 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007898/0.1292, allocations: 0.5183 MB / 0.5901 GB, free: 496 kB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.736e-05/0.1293, allocations: 7.938 kB / 0.5901 GB, free: 488 kB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001005/0.1294, allocations: 15.86 kB / 0.5901 GB, free: 472 kB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.075e-05/0.1295, allocations: 19.8 kB / 0.5901 GB, free: 452 kB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001819/0.1296, allocations: 51.94 kB / 0.5901 GB, free: 400 kB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001757/0.1298, allocations: 163.4 kB / 0.5903 GB, free: 236 kB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000127/0.13, allocations: 69.61 kB / 0.5904 GB, free: 164 kB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.245e-05/0.13, allocations: 39.73 kB / 0.5904 GB, free: 124 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.054e-05/0.1301, allocations: 43.72 kB / 0.5905 GB, free: 80 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.836e-05/0.1301, allocations: 4 kB / 0.5905 GB, free: 76 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.408e-05/0.1301, allocations: 7.938 kB / 0.5905 GB, free: 68 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.564e-05/0.1302, allocations: 23.91 kB / 0.5905 GB, free: 44 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.547e-05/0.1303, allocations: 89.34 kB / 0.5906 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001158/0.1304, allocations: 115.7 kB / 0.5907 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.294e-06/0.1304, allocations: 0 / 0.5907 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.032e-06/0.1304, allocations: 0 / 0.5907 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.366e-06/0.1304, allocations: 0 / 0.5907 GB, free: 15.84 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.0005574/0.131, allocations: 458.8 kB / 0.5911 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.131, allocations: 12.03 kB / 0.5911 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.083e-05/0.1311, allocations: 42.73 kB / 0.5912 GB, free: 15.28 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.429e-05/0.1311, allocations: 16.75 kB / 0.5912 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001944/0.1313, allocations: 235.8 kB / 0.5914 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.067e-06/0.1313, allocations: 4.375 kB / 0.5914 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.598e-05/0.1313, allocations: 16.38 kB / 0.5914 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002572/0.1316, allocations: 158 kB / 0.5916 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.1316, allocations: 7.938 kB / 0.5916 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.1316, allocations: 4 kB / 0.5916 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.413e-06/0.1317, allocations: 4 kB / 0.5916 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002184/0.1319, allocations: 83.88 kB / 0.5917 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007343/0.1326, allocations: 0.7353 MB / 0.5924 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001411/0.1328, allocations: 58.48 kB / 0.5925 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001045/0.1329, allocations: 40.83 kB / 0.5925 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.742e-05/0.1329, allocations: 4 kB / 0.5925 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002332/0.1331, allocations: 131.8 kB / 0.5926 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.333e-06/0.1332, allocations: 0 / 0.5926 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004408/0.1336, allocations: 185.5 kB / 0.5928 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.354e-05/0.1337, allocations: 132.5 kB / 0.5929 GB, free: 13.29 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001559/0.1338, allocations: 206.9 kB / 0.5931 GB, free: 13.07 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.657e-05/0.1338, allocations: 25.7 kB / 0.5931 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.824e-05/0.1339, allocations: 127.9 kB / 0.5933 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.019e-05/0.134, allocations: 35.55 kB / 0.5933 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.246e-05/0.134, allocations: 29.64 kB / 0.5933 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.477e-05/0.1341, allocations: 330.8 kB / 0.5936 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.1342, allocations: 43.97 kB / 0.5937 GB, free: 12.46 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001642/0.1344, allocations: 156.3 kB / 0.5938 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002918/0.1347, allocations: 214.3 kB / 0.594 GB, free: 12 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.1347, allocations: 0 / 0.594 GB, free: 12 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003761/0.1351, allocations: 213.2 kB / 0.5942 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.1351, allocations: 14.12 kB / 0.5943 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.1351, allocations: 4 kB / 0.5943 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.1351, allocations: 4 kB / 0.5943 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.1352, allocations: 36.38 kB / 0.5943 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.1353, allocations: 11.94 kB / 0.5943 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000138/0.1354, allocations: 31.83 kB / 0.5943 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.226e-05/0.1354, allocations: 11.98 kB / 0.5944 GB, free: 11.68 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 9.276e-05/0.1355, allocations: 137.9 kB / 0.5945 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.805e-05/0.1356, allocations: 23.8 kB / 0.5945 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.979e-05/0.1356, allocations: 21.39 kB / 0.5945 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.1356, allocations: 4 kB / 0.5945 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.1356, allocations: 4 kB / 0.5945 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.1356, allocations: 3.984 kB / 0.5945 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000654/0.1363, allocations: 0.5249 MB / 0.5951 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.1363, allocations: 0 / 0.5951 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.1364, allocations: 23.92 kB / 0.5951 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.1364, allocations: 0 / 0.5951 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/0.1364, allocations: 11.92 kB / 0.5951 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1364, allocations: 320 / 0.5951 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.1365, allocations: 7.875 kB / 0.5951 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004517/0.1369, allocations: 384 kB / 0.5955 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.479e-05/0.137, allocations: 92.92 kB / 0.5955 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.034e-05/0.137, allocations: 0 / 0.5955 GB, free: 10.34 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000165/0.1372, allocations: 20.03 kB / 0.5956 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.04e-05/0.1372, allocations: 19.91 kB / 0.5956 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.945e-06/0.1372, allocations: 4 kB / 0.5956 GB, free: 10.3 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 9.681e-05/0.1373, allocations: 144.6 kB / 0.5957 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1373, allocations: 0 / 0.5957 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003049/0.1376, allocations: 31.91 kB / 0.5958 GB, free: 10.13 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.0006557/0.1383, allocations: 0.9045 MB / 0.5966 GB, free: 9.191 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002819/0.1386, allocations: 132.7 kB / 0.5968 GB, free: 9.062 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1386, allocations: 4.062 kB / 0.5968 GB, free: 9.059 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001326/0.1387, allocations: 55.91 kB / 0.5968 GB, free: 9.004 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000512/0.1393, allocations: 61.62 kB / 0.5969 GB, free: 8.949 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002158/0.1414, allocations: 2.334 MB / 0.5992 GB, free: 6.422 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002143/0.1417, allocations: 0.7206 MB / 0.5999 GB, free: 5.676 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.777e-05/0.1417, allocations: 21.95 kB / 0.5999 GB, free: 5.656 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.941e-05/0.1418, allocations: 51.42 kB / 0.5999 GB, free: 5.605 MB / 0.4981 GB Notification: Performance of SimCode: time 3.51e-07/0.1418, allocations: 0 / 0.5999 GB, free: 5.605 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.304/2.446, allocations: 3.574 MB / 0.6034 GB, free: 2.184 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002158/2.446, allocations: 198.4 kB / 0.6036 GB, free: 1.926 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.48/4.926, allocations: 0 / 0.6036 GB, free: 1.926 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_IntegratorWithReset.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)