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.001493/0.001493, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001749/0.001749, allocations: 195.4 kB / 16.14 MB, free: 6.688 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.335/1.335, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9178/0.9178, allocations: 135.1 MB / 425.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 68.45 kB / 0.5048 GB, free: 5.656 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.136/0.1372, allocations: 80.92 MB / 0.5838 GB, free: 4.906 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.003066/0.1404, allocations: 1.874 MB / 0.5856 GB, free: 3.012 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009333/0.1413, allocations: 0.5222 MB / 0.5861 GB, free: 2.484 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001552/0.1415, allocations: 4 kB / 0.5862 GB, free: 2.48 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001535/0.1416, allocations: 19.78 kB / 0.5862 GB, free: 2.461 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 8.743e-05/0.1418, allocations: 27.8 kB / 0.5862 GB, free: 2.434 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00024/0.142, allocations: 55.92 kB / 0.5863 GB, free: 2.379 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002187/0.1422, allocations: 167.4 kB / 0.5864 GB, free: 2.215 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001557/0.1424, allocations: 49.64 kB / 0.5865 GB, free: 2.164 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.703e-05/0.1425, allocations: 47.78 kB / 0.5865 GB, free: 2.117 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.891e-05/0.1426, allocations: 67.56 kB / 0.5866 GB, free: 2.051 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.745e-05/0.1426, allocations: 11.94 kB / 0.5866 GB, free: 2.039 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.25e-05/0.1426, allocations: 4 kB / 0.5866 GB, free: 2.035 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.273e-05/0.1427, allocations: 19.92 kB / 0.5866 GB, free: 2.016 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.074e-05/0.1428, allocations: 63.55 kB / 0.5867 GB, free: 1.953 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001521/0.1429, allocations: 119.8 kB / 0.5868 GB, free: 1.836 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1429, allocations: 0 / 0.5868 GB, free: 1.836 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1429, allocations: 0 / 0.5868 GB, free: 1.836 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.1429, allocations: 0 / 0.5868 GB, free: 1.836 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.000682/0.1436, allocations: 478.7 kB / 0.5872 GB, free: 1.32 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.1437, allocations: 8.031 kB / 0.5872 GB, free: 1.312 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.064e-05/0.1437, allocations: 42.73 kB / 0.5873 GB, free: 1.262 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.536e-05/0.1438, allocations: 20.75 kB / 0.5873 GB, free: 1.242 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002283/0.144, allocations: 231.8 kB / 0.5875 GB, free: 0.9766 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.246e-05/0.144, allocations: 8.375 kB / 0.5875 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.139e-05/0.1441, allocations: 12.38 kB / 0.5875 GB, free: 0.957 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002875/0.1444, allocations: 161 kB / 0.5877 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.515e-06/0.1444, allocations: 0 / 0.5877 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.53e-05/0.1444, allocations: 7.984 kB / 0.5877 GB, free: 0.7734 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.1444, allocations: 4 kB / 0.5877 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002232/0.1446, allocations: 67.89 kB / 0.5878 GB, free: 0.7031 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009085/0.1455, allocations: 0.747 MB / 0.5885 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001553/0.1457, allocations: 42.55 kB / 0.5885 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/0.1458, allocations: 36.78 kB / 0.5886 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.76e-05/0.1459, allocations: 4 kB / 0.5886 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002808/0.1462, allocations: 122.7 kB / 0.5887 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.483e-06/0.1462, allocations: 0 / 0.5887 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.000495/0.1467, allocations: 165.3 kB / 0.5889 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.201e-05/0.1468, allocations: 132.8 kB / 0.589 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001728/0.1469, allocations: 206.9 kB / 0.5892 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.147, allocations: 25.7 kB / 0.5892 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.295e-05/0.147, allocations: 123.9 kB / 0.5893 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.88e-05/0.1471, allocations: 47.59 kB / 0.5894 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.719e-05/0.1471, allocations: 37.7 kB / 0.5894 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.869e-05/0.1473, allocations: 330.8 kB / 0.5897 GB, free: 14.53 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001262/0.1474, allocations: 39.97 kB / 0.5898 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000166/0.1476, allocations: 146.5 kB / 0.5899 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002978/0.1479, allocations: 206.3 kB / 0.5901 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.1479, allocations: 0 / 0.5901 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003906/0.1483, allocations: 205.5 kB / 0.5903 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.1483, allocations: 8 kB / 0.5903 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.1483, allocations: 4 kB / 0.5903 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.1483, allocations: 4 kB / 0.5903 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.1485, allocations: 39.8 kB / 0.5903 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/0.1485, allocations: 15.92 kB / 0.5904 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001532/0.1486, allocations: 27.83 kB / 0.5904 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.745e-05/0.1487, allocations: 12.19 kB / 0.5904 GB, free: 13.73 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.0001324/0.1488, allocations: 137.7 kB / 0.5905 GB, free: 13.58 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.61e-05/0.1488, allocations: 23.72 kB / 0.5905 GB, free: 13.56 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.603e-05/0.1489, allocations: 21.39 kB / 0.5906 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.1489, allocations: 256 / 0.5906 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.1489, allocations: 4 kB / 0.5906 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.1489, allocations: 4 kB / 0.5906 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007828/0.1497, allocations: 0.5094 MB / 0.5911 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.1497, allocations: 4 kB / 0.5911 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001182/0.1499, allocations: 15.98 kB / 0.5911 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.1499, allocations: 0 / 0.5911 GB, free: 12.94 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.805e-05/0.1499, allocations: 11.94 kB / 0.5911 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.1499, allocations: 3.938 kB / 0.5911 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.1499, allocations: 0 / 0.5911 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00049/0.1504, allocations: 356.1 kB / 0.5914 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.256e-05/0.1505, allocations: 96.95 kB / 0.5915 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.79e-05/0.1505, allocations: 4 kB / 0.5915 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001702/0.1507, allocations: 23.86 kB / 0.5916 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.503e-05/0.1508, allocations: 15.98 kB / 0.5916 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.1508, allocations: 4 kB / 0.5916 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001069/0.1509, allocations: 136.6 kB / 0.5917 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1509, allocations: 0 / 0.5917 GB, free: 12.26 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003411/0.1512, allocations: 31.98 kB / 0.5917 GB, free: 12.23 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.0007455/0.152, allocations: 0.8898 MB / 0.5926 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000304/0.1523, allocations: 119.7 kB / 0.5927 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1523, allocations: 0 / 0.5927 GB, free: 11.19 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001444/0.1525, allocations: 52.97 kB / 0.5928 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005496/0.153, allocations: 64.34 kB / 0.5928 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002458/0.1555, allocations: 2.286 MB / 0.5951 GB, free: 8.602 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002487/0.1558, allocations: 0.7245 MB / 0.5958 GB, free: 7.852 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.153e-05/0.1558, allocations: 17.55 kB / 0.5958 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.028e-05/0.1559, allocations: 55.36 kB / 0.5959 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of SimCode: time 1.513e-06/0.1559, allocations: 0 / 0.5959 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01666/0.1726, allocations: 3.664 MB / 0.5994 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002159/0.1729, allocations: 198 kB / 0.5996 GB, free: 3.992 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.722/1.895, allocations: 4 kB / 0.5996 GB, free: 3.988 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)