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.00133/0.00133, 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.001534/0.001534, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.394/1.394, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.92/0.92, allocations: 135.1 MB / 425.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001973/0.001973, allocations: 60.81 kB / 0.5054 GB, free: 5.23 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1516/0.1536, allocations: 80.92 MB / 0.5845 GB, free: 4.465 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.003357/0.157, allocations: 1.811 MB / 0.5862 GB, free: 2.637 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009708/0.158, allocations: 0.5338 MB / 0.5868 GB, free: 2.098 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000126/0.1581, allocations: 7.938 kB / 0.5868 GB, free: 2.09 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001452/0.1583, allocations: 27.72 kB / 0.5868 GB, free: 2.062 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 7.864e-05/0.1584, allocations: 23.75 kB / 0.5868 GB, free: 2.039 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002192/0.1586, allocations: 67.84 kB / 0.5869 GB, free: 1.973 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000212/0.1588, allocations: 167.5 kB / 0.587 GB, free: 1.809 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000148/0.159, allocations: 57.62 kB / 0.5871 GB, free: 1.75 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.769e-05/0.1591, allocations: 55.72 kB / 0.5871 GB, free: 1.695 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.46e-05/0.1592, allocations: 63.64 kB / 0.5872 GB, free: 1.633 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.47e-05/0.1592, allocations: 8 kB / 0.5872 GB, free: 1.625 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.057e-05/0.1592, allocations: 12 kB / 0.5872 GB, free: 1.613 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.66e-05/0.1593, allocations: 27.91 kB / 0.5873 GB, free: 1.586 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.63e-05/0.1593, allocations: 67.55 kB / 0.5873 GB, free: 1.52 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001496/0.1595, allocations: 127.7 kB / 0.5874 GB, free: 1.395 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1595, allocations: 0 / 0.5874 GB, free: 1.395 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1595, allocations: 0 / 0.5874 GB, free: 1.395 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.1595, allocations: 0 / 0.5874 GB, free: 1.395 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.0006941/0.1602, allocations: 482.7 kB / 0.5879 GB, free: 0.875 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.1603, allocations: 8.031 kB / 0.5879 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.21e-05/0.1603, allocations: 46.73 kB / 0.588 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.33e-05/0.1604, allocations: 20.75 kB / 0.588 GB, free: 0.793 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002298/0.1606, allocations: 229.2 kB / 0.5882 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.003e-05/0.1606, allocations: 8.375 kB / 0.5882 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.215e-05/0.1606, allocations: 12.38 kB / 0.5882 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002748/0.1609, allocations: 153.2 kB / 0.5884 GB, free: 352 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.1609, allocations: 0 / 0.5884 GB, free: 352 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.428e-05/0.161, allocations: 4 kB / 0.5884 GB, free: 348 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.161, allocations: 4 kB / 0.5884 GB, free: 344 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002296/0.1612, allocations: 79.86 kB / 0.5884 GB, free: 264 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008457/0.1621, allocations: 0.7431 MB / 0.5892 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001389/0.1622, allocations: 46.5 kB / 0.5892 GB, free: 15.39 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000104/0.1623, allocations: 36.77 kB / 0.5892 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.809e-05/0.1624, allocations: 4 kB / 0.5892 GB, free: 15.35 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002538/0.1626, allocations: 122.7 kB / 0.5894 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.383e-06/0.1626, allocations: 0 / 0.5894 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004601/0.1631, allocations: 165.3 kB / 0.5895 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.211e-05/0.1632, allocations: 144.8 kB / 0.5897 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001615/0.1633, allocations: 198.9 kB / 0.5899 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.94e-05/0.1634, allocations: 25.7 kB / 0.5899 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.133e-05/0.1634, allocations: 135.9 kB / 0.59 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.287e-05/0.1635, allocations: 43.45 kB / 0.59 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.485e-05/0.1635, allocations: 37.7 kB / 0.5901 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.647e-05/0.1636, allocations: 326.8 kB / 0.5904 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001359/0.1638, allocations: 43.97 kB / 0.5904 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001701/0.164, allocations: 150.7 kB / 0.5906 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002955/0.1643, allocations: 202.3 kB / 0.5908 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.1643, allocations: 0 / 0.5908 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003883/0.1647, allocations: 205.2 kB / 0.591 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.1647, allocations: 7.984 kB / 0.591 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.1647, allocations: 4 kB / 0.591 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.1647, allocations: 4 kB / 0.591 GB, free: 13.37 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/0.1648, allocations: 35.92 kB / 0.591 GB, free: 13.33 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.035e-05/0.1649, allocations: 8 kB / 0.591 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001405/0.165, allocations: 28.14 kB / 0.5911 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.165, allocations: 15.94 kB / 0.5911 GB, free: 13.28 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.0001029/0.1651, allocations: 137.6 kB / 0.5912 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.123e-05/0.1652, allocations: 23.72 kB / 0.5912 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.076e-05/0.1652, allocations: 17.41 kB / 0.5912 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.1652, allocations: 3.984 kB / 0.5912 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/0.1652, allocations: 7.938 kB / 0.5912 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.1653, allocations: 0 / 0.5912 GB, free: 13.08 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007087/0.166, allocations: 0.5096 MB / 0.5917 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.166, allocations: 4 kB / 0.5918 GB, free: 12.51 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001162/0.1661, allocations: 23.92 kB / 0.5918 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.1661, allocations: 48 / 0.5918 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.697e-05/0.1661, allocations: 7.984 kB / 0.5918 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.097e-06/0.1661, allocations: 3.938 kB / 0.5918 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1662, allocations: 4 kB / 0.5918 GB, free: 12.47 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004627/0.1666, allocations: 352.1 kB / 0.5921 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.018e-05/0.1667, allocations: 100.9 kB / 0.5922 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.743e-05/0.1667, allocations: 4.344 kB / 0.5922 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001705/0.1669, allocations: 15.92 kB / 0.5922 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.931e-05/0.1669, allocations: 19.98 kB / 0.5923 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.059e-05/0.167, allocations: 4 kB / 0.5923 GB, free: 11.95 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001052/0.1671, allocations: 144.5 kB / 0.5924 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1671, allocations: 0 / 0.5924 GB, free: 11.8 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003392/0.1674, allocations: 28 kB / 0.5924 GB, free: 11.78 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.0007439/0.1682, allocations: 0.8967 MB / 0.5933 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003123/0.1685, allocations: 115.8 kB / 0.5934 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.1685, allocations: 4 kB / 0.5934 GB, free: 10.73 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001366/0.1687, allocations: 48.91 kB / 0.5935 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005398/0.1692, allocations: 68.86 kB / 0.5935 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002338/0.1715, allocations: 2.265 MB / 0.5957 GB, free: 8.164 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002668/0.1718, allocations: 0.7242 MB / 0.5964 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.447e-05/0.1719, allocations: 17.92 kB / 0.5965 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.611e-05/0.172, allocations: 47.42 kB / 0.5965 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of SimCode: time 6.11e-07/0.172, allocations: 0 / 0.5965 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02721/0.1992, allocations: 3.953 MB / 0.6004 GB, free: 3.492 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.115/9.314, allocations: 8.062 kB / 0.6004 GB, free: 3.484 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)