Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.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(IDEAS.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IDEAS_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.0008774/0.0008774, allocations: 89.89 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.007983/0.007983, allocations: 171.2 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.191/1.191, allocations: 223.2 MB / 240.3 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6776/0.6776, allocations: 132.3 MB / 423.8 MB, free: 1.977 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002572/0.0002572, allocations: 12 kB / 0.5041 GB, free: 3.789 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3239/0.3241, allocations: 81.57 MB / 0.5837 GB, free: 3.879 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.00167/0.3258, allocations: 1.52 MB / 0.5852 GB, free: 2.77 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007738/0.3266, allocations: 0.5309 MB / 0.5857 GB, free: 2.391 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.471e-05/0.3267, allocations: 9.281 kB / 0.5858 GB, free: 2.387 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 7.386e-05/0.3268, allocations: 13.5 kB / 0.5858 GB, free: 2.379 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 6.426e-05/0.3269, allocations: 21.33 kB / 0.5858 GB, free: 2.363 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001584/0.3271, allocations: 61.73 kB / 0.5858 GB, free: 2.332 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001801/0.3273, allocations: 164 kB / 0.586 GB, free: 2.258 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.948e-05/0.3274, allocations: 50.44 kB / 0.5861 GB, free: 2.234 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.278e-05/0.3274, allocations: 49.94 kB / 0.5861 GB, free: 2.207 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.54e-05/0.3275, allocations: 46.19 kB / 0.5861 GB, free: 2.184 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.546e-05/0.3275, allocations: 4.312 kB / 0.5861 GB, free: 2.184 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.34e-05/0.3275, allocations: 4.781 kB / 0.5862 GB, free: 2.184 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 2.078e-05/0.3276, allocations: 20.05 kB / 0.5862 GB, free: 2.172 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 5.069e-05/0.3276, allocations: 85.06 kB / 0.5863 GB, free: 2.102 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001144/0.3277, allocations: 119.6 kB / 0.5864 GB, free: 2.055 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.3277, allocations: 5.094 kB / 0.5864 GB, free: 2.051 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.3277, allocations: 0 / 0.5864 GB, free: 2.051 MB / 430.1 MB Notification: Performance of Transformations before backend: time 3.156e-06/0.3278, allocations: 0 / 0.5864 GB, free: 2.051 MB / 430.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.000445/0.3282, allocations: 453.5 kB / 0.5868 GB, free: 1.641 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.485e-05/0.3282, allocations: 9.562 kB / 0.5868 GB, free: 1.641 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.792e-05/0.3283, allocations: 44.83 kB / 0.5869 GB, free: 1.594 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.288e-05/0.3283, allocations: 18.72 kB / 0.5869 GB, free: 1.586 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001634/0.3285, allocations: 230.9 kB / 0.5871 GB, free: 1.355 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.3285, allocations: 13.78 kB / 0.5871 GB, free: 1.348 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.59e-05/0.3285, allocations: 13.12 kB / 0.5871 GB, free: 1.344 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002491/0.3288, allocations: 154.9 kB / 0.5873 GB, free: 1.238 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.3288, allocations: 1.516 kB / 0.5873 GB, free: 1.238 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.006e-05/0.3288, allocations: 5.656 kB / 0.5873 GB, free: 1.234 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.3288, allocations: 2.344 kB / 0.5873 GB, free: 1.234 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000222/0.329, allocations: 82.8 kB / 0.5874 GB, free: 1.215 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006248/0.3297, allocations: 0.7361 MB / 0.5881 GB, free: 0.5469 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001286/0.3298, allocations: 61.25 kB / 0.5881 GB, free: 0.5078 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.985e-05/0.3299, allocations: 36.3 kB / 0.5882 GB, free: 0.4961 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.332e-05/0.3299, allocations: 5.047 kB / 0.5882 GB, free: 0.4922 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002322/0.3302, allocations: 136.4 kB / 0.5883 GB, free: 396 kB / 430.1 MB Notification: Performance of pre-optimization done (n=11): time 1.232e-06/0.3302, allocations: 3.938 kB / 0.5883 GB, free: 392 kB / 430.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004177/0.3306, allocations: 183.8 kB / 0.5885 GB, free: 316 kB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.781e-05/0.3307, allocations: 132.6 kB / 0.5886 GB, free: 156 kB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001475/0.3308, allocations: 199.5 kB / 0.5888 GB, free: 16 kB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.887e-05/0.3309, allocations: 35.44 kB / 0.5888 GB, free: 15.98 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.484e-05/0.3309, allocations: 124.6 kB / 0.589 GB, free: 15.86 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.34e-05/0.331, allocations: 32.19 kB / 0.589 GB, free: 15.84 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.515e-05/0.331, allocations: 28.25 kB / 0.589 GB, free: 15.82 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.3311, allocations: 329 kB / 0.5893 GB, free: 15.5 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001266/0.3313, allocations: 42.06 kB / 0.5894 GB, free: 15.49 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001869/0.3314, allocations: 156 kB / 0.5895 GB, free: 15.33 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003276/0.3318, allocations: 220 kB / 0.5897 GB, free: 15.14 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.3318, allocations: 1.375 kB / 0.5897 GB, free: 15.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004138/0.3322, allocations: 214.3 kB / 0.5899 GB, free: 15.04 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.3322, allocations: 8.703 kB / 0.5899 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.3323, allocations: 7.594 kB / 0.5899 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.029e-05/0.3323, allocations: 5.375 kB / 0.5899 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.3324, allocations: 39.77 kB / 0.59 GB, free: 15.03 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.3324, allocations: 10.58 kB / 0.59 GB, free: 15.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001509/0.3326, allocations: 28.36 kB / 0.59 GB, free: 15.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.537e-05/0.3326, allocations: 13.12 kB / 0.59 GB, free: 15.02 MB / 446.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 0.0001003/0.3327, allocations: 144.8 kB / 0.5902 GB, free: 14.88 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.792e-05/0.3327, allocations: 17.89 kB / 0.5902 GB, free: 14.87 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.731e-05/0.3328, allocations: 21 kB / 0.5902 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.618e-06/0.3328, allocations: 6.094 kB / 0.5902 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.3328, allocations: 2.125 kB / 0.5902 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.3328, allocations: 2.375 kB / 0.5902 GB, free: 14.85 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007366/0.3335, allocations: 0.5264 MB / 0.5907 GB, free: 14.42 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.3336, allocations: 1.438 kB / 0.5907 GB, free: 14.42 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001154/0.3337, allocations: 31.56 kB / 0.5908 GB, free: 14.41 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.3337, allocations: 0.8438 kB / 0.5908 GB, free: 14.41 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.085e-05/0.3337, allocations: 2.25 kB / 0.5908 GB, free: 14.41 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/0.3337, allocations: 2.609 kB / 0.5908 GB, free: 14.41 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.3337, allocations: 8.75 kB / 0.5908 GB, free: 14.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004894/0.3342, allocations: 368.1 kB / 0.5911 GB, free: 14.14 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.187e-05/0.3343, allocations: 99.67 kB / 0.5912 GB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.233e-05/0.3343, allocations: 2.766 kB / 0.5912 GB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001622/0.3345, allocations: 20.67 kB / 0.5912 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.682e-05/0.3345, allocations: 17.2 kB / 0.5913 GB, free: 14.02 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.044e-05/0.3345, allocations: 6.375 kB / 0.5913 GB, free: 14.02 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001138/0.3347, allocations: 141.7 kB / 0.5914 GB, free: 13.92 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3347, allocations: 0 / 0.5914 GB, free: 13.92 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003048/0.335, allocations: 34.72 kB / 0.5914 GB, free: 13.91 MB / 446.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.0007129/0.3357, allocations: 0.9077 MB / 0.5923 GB, free: 13.11 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0003026/0.336, allocations: 132 kB / 0.5925 GB, free: 13.07 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.336, allocations: 0 / 0.5925 GB, free: 13.07 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001415/0.3362, allocations: 55.34 kB / 0.5925 GB, free: 13.05 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005095/0.3367, allocations: 61.36 kB / 0.5926 GB, free: 13.04 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002484/0.3392, allocations: 2.337 MB / 0.5948 GB, free: 11.12 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002559/0.3394, allocations: 0.7237 MB / 0.5956 GB, free: 10.42 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 7.98e-05/0.3395, allocations: 20.39 kB / 0.5956 GB, free: 10.41 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.96e-05/0.3396, allocations: 49.73 kB / 0.5956 GB, free: 10.38 MB / 446.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3396, allocations: 0.8125 kB / 0.5956 GB, free: 10.38 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2036/0.5433, allocations: 3.581 MB / 0.5991 GB, free: 9.684 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002241/0.5435, allocations: 197.6 kB / 0.5993 GB, free: 9.43 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.672/2.216, allocations: 0 / 0.5993 GB, free: 9.43 MB / 446.1 MB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_IntegratorWithReset.fmu > IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)