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.004968/0.004968, allocations: 98.64 kB / 15.73 MB, free: 6.039 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.001237/0.001237, allocations: 202.3 kB / 16.68 MB, free: 5.961 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.399/1.399, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9584/0.9584, allocations: 135.5 MB / 426.1 MB, free: 11.85 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001877/0.001877, allocations: 67.89 kB / 0.5858 GB, free: 3.203 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3791/0.381, allocations: 81.02 MB / 0.6649 GB, free: 6.867 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.002401/0.3834, allocations: 1.798 MB / 0.6666 GB, free: 5.461 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0007949/0.3842, allocations: 0.548 MB / 0.6672 GB, free: 5.02 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.601e-05/0.3843, allocations: 2.562 kB / 0.6672 GB, free: 5.02 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001183/0.3845, allocations: 21.14 kB / 0.6672 GB, free: 5 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.253e-05/0.3845, allocations: 26.47 kB / 0.6672 GB, free: 4.977 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001954/0.3847, allocations: 73.7 kB / 0.6673 GB, free: 4.918 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001898/0.3849, allocations: 174 kB / 0.6675 GB, free: 4.812 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001272/0.3851, allocations: 50.41 kB / 0.6675 GB, free: 4.781 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 6.89e-05/0.3852, allocations: 55.44 kB / 0.6676 GB, free: 4.746 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.615e-05/0.3852, allocations: 60.59 kB / 0.6676 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.784e-05/0.3853, allocations: 14.31 kB / 0.6676 GB, free: 4.695 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 2.198e-05/0.3853, allocations: 13.44 kB / 0.6676 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 3.056e-05/0.3853, allocations: 29.23 kB / 0.6677 GB, free: 4.668 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 5.509e-05/0.3854, allocations: 66.58 kB / 0.6677 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001576/0.3855, allocations: 132 kB / 0.6679 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.3855, allocations: 0 / 0.6679 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.162e-06/0.3856, allocations: 0 / 0.6679 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.546e-06/0.3856, allocations: 1.5 kB / 0.6679 GB, free: 4.523 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.0005765/0.3861, allocations: 475.9 kB / 0.6683 GB, free: 4.066 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.3862, allocations: 13.67 kB / 0.6683 GB, free: 4.062 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.071e-05/0.3862, allocations: 43 kB / 0.6684 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.812e-05/0.3863, allocations: 22.02 kB / 0.6684 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002347/0.3865, allocations: 240.5 kB / 0.6686 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.381e-05/0.3865, allocations: 13.39 kB / 0.6686 GB, free: 3.746 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.85e-05/0.3866, allocations: 12.09 kB / 0.6686 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002503/0.3868, allocations: 154.3 kB / 0.6688 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.3868, allocations: 0 / 0.6688 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.3869, allocations: 2.688 kB / 0.6688 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.3869, allocations: 2.406 kB / 0.6688 GB, free: 3.613 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002104/0.3871, allocations: 77.38 kB / 0.6689 GB, free: 3.574 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006732/0.3878, allocations: 0.7351 MB / 0.6696 GB, free: 2.848 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001403/0.3879, allocations: 53.75 kB / 0.6696 GB, free: 2.805 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.388, allocations: 32.14 kB / 0.6697 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.3881, allocations: 1.312 kB / 0.6697 GB, free: 2.785 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001993/0.3883, allocations: 125.6 kB / 0.6698 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.853e-06/0.3883, allocations: 0 / 0.6698 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0004612/0.3887, allocations: 168.6 kB / 0.6699 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.165e-05/0.3888, allocations: 135 kB / 0.6701 GB, free: 2.41 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001401/0.3889, allocations: 199.9 kB / 0.6703 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.44e-05/0.389, allocations: 35.08 kB / 0.6703 GB, free: 2.219 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.643e-05/0.389, allocations: 132.2 kB / 0.6704 GB, free: 2.094 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.634e-05/0.3891, allocations: 41.17 kB / 0.6705 GB, free: 2.059 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.4e-05/0.3891, allocations: 48.08 kB / 0.6705 GB, free: 2.02 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 4.65e-05/0.3892, allocations: 326.6 kB / 0.6708 GB, free: 1.695 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001176/0.3893, allocations: 37.69 kB / 0.6709 GB, free: 1.68 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001402/0.3894, allocations: 146.1 kB / 0.671 GB, free: 1.516 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000263/0.3897, allocations: 209 kB / 0.6712 GB, free: 1.312 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.3897, allocations: 1.188 kB / 0.6712 GB, free: 1.312 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003611/0.3901, allocations: 202.8 kB / 0.6714 GB, free: 1.199 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.3901, allocations: 14.64 kB / 0.6714 GB, free: 1.191 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/0.3901, allocations: 3.688 kB / 0.6714 GB, free: 1.191 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.897e-05/0.3901, allocations: 6.281 kB / 0.6714 GB, free: 1.191 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001179/0.3903, allocations: 32.33 kB / 0.6714 GB, free: 1.184 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.3903, allocations: 13.33 kB / 0.6715 GB, free: 1.176 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001359/0.3904, allocations: 35.33 kB / 0.6715 GB, free: 1.152 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.339e-05/0.3904, allocations: 7.812 kB / 0.6715 GB, free: 1.152 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 7.84e-05/0.3905, allocations: 151.8 kB / 0.6716 GB, free: 1.008 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.629e-05/0.3906, allocations: 20.7 kB / 0.6717 GB, free: 0.9961 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.781e-05/0.3906, allocations: 18.44 kB / 0.6717 GB, free: 0.9805 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.3906, allocations: 5.609 kB / 0.6717 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.3906, allocations: 1.219 kB / 0.6717 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.177e-06/0.3906, allocations: 1.344 kB / 0.6717 GB, free: 0.9766 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006127/0.3912, allocations: 0.5147 MB / 0.6722 GB, free: 0.4922 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.3913, allocations: 1.312 kB / 0.6722 GB, free: 0.4922 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001115/0.3914, allocations: 19.11 kB / 0.6722 GB, free: 496 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.3914, allocations: 1.562 kB / 0.6722 GB, free: 496 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.389e-05/0.3914, allocations: 3.156 kB / 0.6722 GB, free: 496 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.3914, allocations: 5.125 kB / 0.6722 GB, free: 492 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3914, allocations: 1.406 kB / 0.6722 GB, free: 492 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004131/0.3918, allocations: 361 kB / 0.6726 GB, free: 188 kB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.299e-05/0.3919, allocations: 93.62 kB / 0.6727 GB, free: 80 kB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.506e-05/0.3919, allocations: 6.266 kB / 0.6727 GB, free: 76 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001639/0.3921, allocations: 27.03 kB / 0.6727 GB, free: 56 kB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.663e-05/0.3921, allocations: 9.672 kB / 0.6727 GB, free: 52 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.052e-05/0.3921, allocations: 8.906 kB / 0.6727 GB, free: 48 kB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001184/0.3923, allocations: 137.7 kB / 0.6728 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.7e-07/0.3923, allocations: 0 / 0.6728 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003243/0.3926, allocations: 26.91 kB / 0.6729 GB, free: 15.94 MB / 0.5137 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.0008564/0.3935, allocations: 0.894 MB / 0.6737 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0003289/0.3938, allocations: 117.4 kB / 0.6738 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 4.789e-06/0.3938, allocations: 0 / 0.6738 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001507/0.394, allocations: 57.33 kB / 0.6739 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008046/0.3948, allocations: 65.17 kB / 0.674 GB, free: 15 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002783/0.3976, allocations: 2.27 MB / 0.6762 GB, free: 13.02 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003383/0.3979, allocations: 0.728 MB / 0.6769 GB, free: 12.29 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 8.61e-05/0.398, allocations: 19.58 kB / 0.6769 GB, free: 12.28 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.584e-05/0.3981, allocations: 49.8 kB / 0.677 GB, free: 12.24 MB / 0.5137 GB Notification: Performance of SimCode: time 5.51e-07/0.3981, allocations: 0 / 0.677 GB, free: 12.24 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03414/0.4323, allocations: 4.011 MB / 0.6809 GB, free: 10.22 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.544/8.976, allocations: 5.25 kB / 0.6809 GB, free: 10.21 MB / 0.5137 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)