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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.00647/0.00647, allocations: 169.6 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7701/0.7701, allocations: 135.2 MB / 151 MB, free: 13.83 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.46/1.46, allocations: 223.2 MB / 406.8 MB, free: 3.207 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008831/0.0008831, allocations: 100.6 kB / 489.9 MB, free: 10.9 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003399/0.0003401, allocations: 8 kB / 0.5691 GB, free: 14.07 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3726/0.373, allocations: 82.32 MB / 0.6495 GB, free: 36.12 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1381/0.5111, allocations: 113.2 MB / 0.7601 GB, free: 2.723 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002597/0.5114, allocations: 75.94 kB / 0.7602 GB, free: 2.648 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.00972/0.5212, allocations: 3.527 MB / 0.7636 GB, free: 15.11 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.345e-06/0.5212, allocations: 224 / 0.7636 GB, free: 15.11 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.969e-05/0.5212, allocations: 11.94 kB / 0.7636 GB, free: 15.1 MB / 0.5417 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.0006587/0.5219, allocations: 464.2 kB / 0.7641 GB, free: 14.6 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/0.522, allocations: 8.031 kB / 0.7641 GB, free: 14.59 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.623e-05/0.522, allocations: 42.55 kB / 0.7641 GB, free: 14.54 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.68e-05/0.5221, allocations: 23.75 kB / 0.7642 GB, free: 14.52 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002864/0.5224, allocations: 222.7 kB / 0.7644 GB, free: 14.26 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.305e-05/0.5224, allocations: 11.94 kB / 0.7644 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.472e-05/0.5224, allocations: 19.94 kB / 0.7644 GB, free: 14.23 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003029/0.5227, allocations: 150.9 kB / 0.7645 GB, free: 14.06 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.5228, allocations: 0 / 0.7645 GB, free: 14.06 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.6e-05/0.5228, allocations: 8 kB / 0.7646 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.5228, allocations: 4 kB / 0.7646 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002361/0.523, allocations: 79.88 kB / 0.7646 GB, free: 13.97 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001068/0.5241, allocations: 0.7706 MB / 0.7654 GB, free: 13.13 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001466/0.5243, allocations: 42.56 kB / 0.7654 GB, free: 13.08 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 2.028e-05/0.5243, allocations: 4 kB / 0.7654 GB, free: 13.08 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002905/0.5246, allocations: 134.6 kB / 0.7656 GB, free: 12.92 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=11): time 1.313e-06/0.5246, allocations: 0 / 0.7656 GB, free: 12.92 MB / 0.5417 GB Notification: Performance of matching and sorting (n=11): time 0.0004964/0.5251, allocations: 181.5 kB / 0.7657 GB, free: 12.74 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.375e-05/0.5252, allocations: 132.5 kB / 0.7659 GB, free: 12.58 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001706/0.5254, allocations: 181.9 kB / 0.766 GB, free: 12.39 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.154e-05/0.5254, allocations: 25.7 kB / 0.7661 GB, free: 12.36 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 9.433e-05/0.5255, allocations: 139.8 kB / 0.7662 GB, free: 12.22 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 3.252e-05/0.5255, allocations: 31.7 kB / 0.7662 GB, free: 12.19 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.879e-06/0.5256, allocations: 8 kB / 0.7662 GB, free: 12.18 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001324/0.5257, allocations: 334.8 kB / 0.7665 GB, free: 11.84 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001329/0.5258, allocations: 40.34 kB / 0.7666 GB, free: 11.8 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001819/0.526, allocations: 143.3 kB / 0.7667 GB, free: 11.61 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001411/0.5262, allocations: 67.91 kB / 0.7668 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.5262, allocations: 0 / 0.7668 GB, free: 11.54 MB / 0.5417 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003952/0.5266, allocations: 217.1 kB / 0.767 GB, free: 11.32 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.5266, allocations: 4 kB / 0.767 GB, free: 11.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.5266, allocations: 4 kB / 0.767 GB, free: 11.32 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.5267, allocations: 8.5 kB / 0.767 GB, free: 11.31 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.5268, allocations: 39.91 kB / 0.767 GB, free: 11.27 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.08e-05/0.5268, allocations: 8 kB / 0.7671 GB, free: 11.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001462/0.527, allocations: 27.83 kB / 0.7671 GB, free: 11.23 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.368e-05/0.527, allocations: 12 kB / 0.7671 GB, free: 11.22 MB / 0.5417 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 ($whenCondition2,intWitRes1.trigger,$whenCondition1,$whenCondition3,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001243/0.5271, allocations: 137.7 kB / 0.7672 GB, free: 11.08 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.896e-05/0.5271, allocations: 23.81 kB / 0.7672 GB, free: 11.05 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.247e-05/0.5272, allocations: 21.41 kB / 0.7673 GB, free: 11.04 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.5272, allocations: 0 / 0.7673 GB, free: 11.04 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.5272, allocations: 4 kB / 0.7673 GB, free: 11.04 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.5272, allocations: 7.922 kB / 0.7673 GB, free: 11.03 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007854/0.528, allocations: 0.5252 MB / 0.7678 GB, free: 10.45 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.027e-05/0.528, allocations: 7.984 kB / 0.7678 GB, free: 10.44 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.5282, allocations: 15.98 kB / 0.7678 GB, free: 10.42 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.304e-06/0.5282, allocations: 4 kB / 0.7678 GB, free: 10.42 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.5282, allocations: 3.938 kB / 0.7678 GB, free: 10.41 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.357e-06/0.5282, allocations: 8 kB / 0.7678 GB, free: 10.41 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.105e-06/0.5282, allocations: 0 / 0.7678 GB, free: 10.41 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005484/0.5288, allocations: 414.6 kB / 0.7682 GB, free: 9.961 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 6.023e-05/0.5288, allocations: 96.88 kB / 0.7683 GB, free: 9.848 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.73e-05/0.5289, allocations: 7.984 kB / 0.7683 GB, free: 9.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001768/0.5291, allocations: 24.02 kB / 0.7683 GB, free: 9.816 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.564e-05/0.5291, allocations: 15.98 kB / 0.7684 GB, free: 9.801 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.308e-05/0.5291, allocations: 4 kB / 0.7684 GB, free: 9.797 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001196/0.5293, allocations: 144.5 kB / 0.7685 GB, free: 9.656 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5293, allocations: 0 / 0.7685 GB, free: 9.656 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003254/0.5296, allocations: 28 kB / 0.7685 GB, free: 9.629 MB / 0.5417 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,intWitRes1.trigger,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009151/0.5305, allocations: 1.155 MB / 0.7697 GB, free: 8.426 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0003423/0.5309, allocations: 123.8 kB / 0.7698 GB, free: 8.305 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.5309, allocations: 0 / 0.7698 GB, free: 8.305 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001588/0.5311, allocations: 61.03 kB / 0.7698 GB, free: 8.246 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004455/0.5315, allocations: 57.83 kB / 0.7699 GB, free: 8.195 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002574/0.5341, allocations: 3.51 MB / 0.7733 GB, free: 4.551 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002931/0.5344, allocations: 0.7283 MB / 0.774 GB, free: 3.797 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 8.361e-05/0.5345, allocations: 25.73 kB / 0.7741 GB, free: 3.773 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.747e-05/0.5346, allocations: 47.42 kB / 0.7741 GB, free: 3.727 MB / 0.5417 GB Notification: Performance of SimCode: time 3.847e-06/0.5346, allocations: 0 / 0.7741 GB, free: 3.727 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01528/0.5499, allocations: 3.534 MB / 0.7776 GB, free: 328 kB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002006/0.5501, allocations: 175.3 kB / 0.7777 GB, free: 80 kB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.644/2.195, allocations: 0 / 0.7777 GB, free: 80 kB / 0.5417 GB (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/linux/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)