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.0009059/0.0009093, 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.001208/0.001208, allocations: 193.2 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.182/1.182, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.676/0.676, allocations: 132.2 MB / 422.6 MB, free: 1.836 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002146/0.002146, allocations: 65 kB / 0.5019 GB, free: 3.805 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3157/0.3179, allocations: 80.2 MB / 0.5802 GB, free: 4.586 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.002557/0.3204, allocations: 1.818 MB / 0.582 GB, free: 3.305 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007898/0.3212, allocations: 0.5383 MB / 0.5825 GB, free: 2.922 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001065/0.3214, allocations: 6.406 kB / 0.5825 GB, free: 2.918 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 9.776e-05/0.3215, allocations: 26.03 kB / 0.5825 GB, free: 2.898 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 6.617e-05/0.3215, allocations: 28.88 kB / 0.5825 GB, free: 2.875 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001752/0.3217, allocations: 64.83 kB / 0.5826 GB, free: 2.844 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001839/0.3219, allocations: 173.4 kB / 0.5828 GB, free: 2.762 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001035/0.322, allocations: 48.12 kB / 0.5828 GB, free: 2.742 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.669e-05/0.3221, allocations: 61.84 kB / 0.5829 GB, free: 2.707 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.195e-05/0.3222, allocations: 52.67 kB / 0.5829 GB, free: 2.68 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.387e-05/0.3222, allocations: 9.812 kB / 0.5829 GB, free: 2.68 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.038e-05/0.3222, allocations: 10.75 kB / 0.5829 GB, free: 2.68 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 2.762e-05/0.3223, allocations: 33.3 kB / 0.583 GB, free: 2.656 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 5.451e-05/0.3223, allocations: 64.44 kB / 0.583 GB, free: 2.613 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001342/0.3225, allocations: 135.4 kB / 0.5832 GB, free: 2.547 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.3225, allocations: 0.6562 kB / 0.5832 GB, free: 2.547 MB / 430.1 MB Notification: Performance of FrontEnd: time 6.31e-07/0.3225, allocations: 0 / 0.5832 GB, free: 2.547 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.3225, allocations: 0.75 kB / 0.5832 GB, free: 2.547 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.0004946/0.323, allocations: 469 kB / 0.5836 GB, free: 2.125 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.734e-05/0.323, allocations: 10 kB / 0.5836 GB, free: 2.125 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.641e-05/0.323, allocations: 49.45 kB / 0.5837 GB, free: 2.074 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.549e-05/0.3231, allocations: 26.72 kB / 0.5837 GB, free: 2.059 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001569/0.3232, allocations: 223.5 kB / 0.5839 GB, free: 1.836 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.079e-05/0.3233, allocations: 9.188 kB / 0.5839 GB, free: 1.832 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.573e-05/0.3233, allocations: 12.94 kB / 0.5839 GB, free: 1.828 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002296/0.3235, allocations: 150 kB / 0.5841 GB, free: 1.723 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.3235, allocations: 0 / 0.5841 GB, free: 1.723 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.241e-05/0.3236, allocations: 7.203 kB / 0.5841 GB, free: 1.719 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.3236, allocations: 1.875 kB / 0.5841 GB, free: 1.719 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002014/0.3238, allocations: 73.09 kB / 0.5842 GB, free: 1.699 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006186/0.3244, allocations: 0.7502 MB / 0.5849 GB, free: 1.016 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001247/0.3245, allocations: 48.09 kB / 0.5849 GB, free: 0.9844 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.456e-05/0.3246, allocations: 30.53 kB / 0.585 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.485e-05/0.3247, allocations: 1.781 kB / 0.585 GB, free: 0.9727 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000212/0.3249, allocations: 135 kB / 0.5851 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of pre-optimization done (n=11): time 1.222e-06/0.3249, allocations: 0 / 0.5851 GB, free: 0.8633 MB / 430.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003955/0.3253, allocations: 157.4 kB / 0.5852 GB, free: 0.8008 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.784e-05/0.3253, allocations: 138.6 kB / 0.5854 GB, free: 0.6367 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001337/0.3255, allocations: 208.1 kB / 0.5856 GB, free: 0.4922 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.155e-05/0.3255, allocations: 27.41 kB / 0.5856 GB, free: 472 kB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.583e-05/0.3255, allocations: 134.1 kB / 0.5857 GB, free: 348 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.299e-05/0.3256, allocations: 31.67 kB / 0.5858 GB, free: 324 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.824e-05/0.3256, allocations: 39.73 kB / 0.5858 GB, free: 296 kB / 430.1 MB Notification: Performance of setup shared object (initialization): time 5.91e-05/0.3257, allocations: 328.8 kB / 0.5861 GB, free: 15.97 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.3258, allocations: 37.94 kB / 0.5861 GB, free: 15.96 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001668/0.326, allocations: 147.6 kB / 0.5863 GB, free: 15.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002823/0.3263, allocations: 209 kB / 0.5865 GB, free: 15.61 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3263, allocations: 1.031 kB / 0.5865 GB, free: 15.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003999/0.3267, allocations: 209.6 kB / 0.5867 GB, free: 15.52 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.105e-05/0.3267, allocations: 5.438 kB / 0.5867 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.3267, allocations: 4.375 kB / 0.5867 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.3267, allocations: 5.594 kB / 0.5867 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.3268, allocations: 37.91 kB / 0.5867 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.3268, allocations: 6.578 kB / 0.5867 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001362/0.327, allocations: 31.34 kB / 0.5868 GB, free: 15.49 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.252e-05/0.327, allocations: 13.14 kB / 0.5868 GB, free: 15.49 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 8.836e-05/0.3271, allocations: 138.1 kB / 0.5869 GB, free: 15.36 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.023e-05/0.3271, allocations: 20.86 kB / 0.5869 GB, free: 15.34 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.989e-05/0.3272, allocations: 22.25 kB / 0.587 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.564e-06/0.3272, allocations: 1.375 kB / 0.587 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.3272, allocations: 1.344 kB / 0.587 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.818e-06/0.3272, allocations: 1.969 kB / 0.587 GB, free: 15.33 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006926/0.3279, allocations: 0.5113 MB / 0.5875 GB, free: 14.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.3279, allocations: 4.5 kB / 0.5875 GB, free: 14.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001075/0.328, allocations: 16.11 kB / 0.5875 GB, free: 14.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.109e-06/0.328, allocations: 10.56 kB / 0.5875 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.3281, allocations: 1.844 kB / 0.5875 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.519e-06/0.3281, allocations: 6.344 kB / 0.5875 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.3281, allocations: 2.141 kB / 0.5875 GB, free: 14.89 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004706/0.3285, allocations: 356.5 kB / 0.5878 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.239e-05/0.3286, allocations: 99.62 kB / 0.5879 GB, free: 14.51 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.228e-05/0.3286, allocations: 6.078 kB / 0.5879 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001568/0.3288, allocations: 19.39 kB / 0.588 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.61e-05/0.3288, allocations: 9.859 kB / 0.588 GB, free: 14.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.378e-06/0.3289, allocations: 5.531 kB / 0.588 GB, free: 14.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001123/0.329, allocations: 141.9 kB / 0.5881 GB, free: 14.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.329, allocations: 0 / 0.5881 GB, free: 14.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003051/0.3293, allocations: 27.38 kB / 0.5881 GB, free: 14.4 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.0007032/0.33, allocations: 0.8997 MB / 0.589 GB, free: 13.59 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002916/0.3303, allocations: 122.6 kB / 0.5891 GB, free: 13.55 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3303, allocations: 0.8125 kB / 0.5891 GB, free: 13.55 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001293/0.3304, allocations: 49.55 kB / 0.5892 GB, free: 13.54 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004873/0.3309, allocations: 72.81 kB / 0.5893 GB, free: 13.52 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002274/0.3332, allocations: 2.256 MB / 0.5915 GB, free: 11.64 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002524/0.3335, allocations: 0.7229 MB / 0.5922 GB, free: 10.94 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.734e-05/0.3336, allocations: 17.22 kB / 0.5922 GB, free: 10.94 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.115e-05/0.3336, allocations: 49.91 kB / 0.5922 GB, free: 10.91 MB / 446.1 MB Notification: Performance of SimCode: time 2e-07/0.3336, allocations: 0 / 0.5922 GB, free: 10.91 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.388/3.722, allocations: 3.966 MB / 0.5961 GB, free: 9.957 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.787/11.51, allocations: 8.781 kB / 0.5961 GB, free: 9.957 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)