Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AixLib_AixLib.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo): time 0.04274/0.04274, allocations: 9.133 MB / 28.99 MB, free: 408 kB / 18.57 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/EmbeddedTargets/STM32F4/Functions/HAL.mo:5:3-11:14:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/OperatingSystem/DynamicArray.mo:6:3-94:18:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/Utilities/Functions.mo:1041:3-1062:27:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/Incubate/Utilities/Functions.mo:1064:3-1092:25:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009734/0.0009734, allocations: 98.58 kB / 35.33 MB, free: 0.9141 MB / 24.77 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 163.3 kB / 38.73 MB, free: 2.391 MB / 24.77 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.001/1.001, allocations: 177.2 MB / 219.2 MB, free: 10.1 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF 0.4.5/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF 0.4.5/package.mo): time 0.004133/0.004133, allocations: 0.8225 MB / 276.5 MB, free: 0.7266 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.1/package.mo): time 1.672/1.672, allocations: 274.9 MB / 0.5419 GB, free: 0.6289 MB / 0.4949 GB " [Timeout remaining time 178] Using package AixLib with version 3.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AixLib 3.0.1/package.mo) Using package SDF with version 0.4.5 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SDF 0.4.5/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Using package Modelica_DeviceDrivers with version 2.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.2.0/package.mo) Running command: translateModel(AixLib.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AixLib_AixLib.Utilities.Math.Examples.IntegratorWithReset") translateModel(AixLib.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="AixLib_AixLib.Utilities.Math.Examples.IntegratorWithReset") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 0.6379 GB, free: 14.12 MB / 0.6043 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.151e-05/2.299e-05, allocations: 6.312 kB / 0.6379 GB, free: 14.12 MB / 0.6043 GB Notification: Performance of NFInst.instantiate(AixLib.Utilities.Math.Examples.IntegratorWithReset): time 0.002435/0.002458, allocations: 1.841 MB / 0.6397 GB, free: 12.26 MB / 0.6043 GB Notification: Performance of NFInst.instExpressions: time 0.0009713/0.003429, allocations: 0.5763 MB / 0.6402 GB, free: 11.68 MB / 0.6043 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.937e-05/0.003529, allocations: 11.88 kB / 0.6402 GB, free: 11.67 MB / 0.6043 GB Notification: Performance of NFTyping.typeComponents: time 0.0001289/0.003657, allocations: 19.8 kB / 0.6403 GB, free: 11.65 MB / 0.6043 GB Notification: Performance of NFTyping.typeBindings: time 6.367e-05/0.003721, allocations: 31.66 kB / 0.6403 GB, free: 11.62 MB / 0.6043 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001931/0.003914, allocations: 67.86 kB / 0.6404 GB, free: 11.55 MB / 0.6043 GB Notification: Performance of NFFlatten.flatten: time 0.0001651/0.004079, allocations: 171.5 kB / 0.6405 GB, free: 11.38 MB / 0.6043 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001065/0.004186, allocations: 38.38 kB / 0.6406 GB, free: 11.34 MB / 0.6043 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001052/0.004291, allocations: 87.73 kB / 0.6406 GB, free: 11.26 MB / 0.6043 GB Notification: Performance of NFSimplifyModel.simplify: time 5.72e-05/0.004348, allocations: 43.81 kB / 0.6407 GB, free: 11.21 MB / 0.6043 GB Notification: Performance of NFPackage.collectConstants: time 2.25e-05/0.004371, allocations: 8 kB / 0.6407 GB, free: 11.21 MB / 0.6043 GB Notification: Performance of NFFlatten.collectFunctions: time 1.758e-05/0.004388, allocations: 12 kB / 0.6407 GB, free: 11.2 MB / 0.6043 GB Notification: Performance of NFScalarize.scalarize: time 2.81e-05/0.004416, allocations: 31.84 kB / 0.6407 GB, free: 11.16 MB / 0.6043 GB Notification: Performance of NFVerifyModel.verify: time 3.809e-05/0.004454, allocations: 39.91 kB / 0.6408 GB, free: 11.12 MB / 0.6043 GB Notification: Performance of NFConvertDAE.convert: time 0.0001258/0.00458, allocations: 103.5 kB / 0.6409 GB, free: 11.02 MB / 0.6043 GB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.004583, allocations: 0 / 0.6409 GB, free: 11.02 MB / 0.6043 GB Notification: Performance of FrontEnd: time 7.82e-07/0.004584, allocations: 0 / 0.6409 GB, free: 11.02 MB / 0.6043 GB Notification: Performance of Transformations before backend: time 4.138e-06/0.004588, allocations: 0 / 0.6409 GB, free: 11.02 MB / 0.6043 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.0004059/0.004994, allocations: 368.1 kB / 0.6412 GB, free: 10.64 MB / 0.6043 GB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.005029, allocations: 11.98 kB / 0.6412 GB, free: 10.63 MB / 0.6043 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.744e-05/0.005066, allocations: 24.91 kB / 0.6413 GB, free: 10.61 MB / 0.6043 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001803/0.005246, allocations: 169.4 kB / 0.6414 GB, free: 10.41 MB / 0.6043 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.22e-05/0.005259, allocations: 12.38 kB / 0.6414 GB, free: 10.4 MB / 0.6043 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.541e-05/0.005284, allocations: 16.38 kB / 0.6414 GB, free: 10.39 MB / 0.6043 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001546/0.005439, allocations: 139.1 kB / 0.6416 GB, free: 10.23 MB / 0.6043 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.005446, allocations: 192 / 0.6416 GB, free: 10.23 MB / 0.6043 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.016e-05/0.005456, allocations: 4.375 kB / 0.6416 GB, free: 10.22 MB / 0.6043 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.005463, allocations: 7.938 kB / 0.6416 GB, free: 10.21 MB / 0.6043 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.3e-05/0.005506, allocations: 35.86 kB / 0.6416 GB, free: 10.18 MB / 0.6043 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004693/0.005976, allocations: 0.5592 MB / 0.6422 GB, free: 9.59 MB / 0.6043 GB Notification: Performance of preOpt comSubExp (simulation): time 4.987e-05/0.006026, allocations: 30.5 kB / 0.6422 GB, free: 9.551 MB / 0.6043 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.265e-05/0.006048, allocations: 20.84 kB / 0.6422 GB, free: 9.527 MB / 0.6043 GB Notification: Performance of preOpt evalFunc (simulation): time 1.557e-05/0.006064, allocations: 4 kB / 0.6422 GB, free: 9.523 MB / 0.6043 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001038/0.006168, allocations: 99.05 kB / 0.6423 GB, free: 9.402 MB / 0.6043 GB Notification: Performance of pre-optimization done (n=11): time 9.61e-07/0.006169, allocations: 7.938 kB / 0.6423 GB, free: 9.395 MB / 0.6043 GB Notification: Performance of matching and sorting (n=11): time 0.0001407/0.006309, allocations: 81.53 kB / 0.6424 GB, free: 9.309 MB / 0.6043 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.652e-05/0.006366, allocations: 140.5 kB / 0.6425 GB, free: 9.141 MB / 0.6043 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.422e-05/0.00646, allocations: 194.2 kB / 0.6427 GB, free: 8.938 MB / 0.6043 GB Notification: Performance of collectPreVariables (initialization): time 1.305e-05/0.006473, allocations: 29.7 kB / 0.6427 GB, free: 8.902 MB / 0.6043 GB Notification: Performance of collectInitialEqns (initialization): time 5.097e-05/0.006524, allocations: 124.1 kB / 0.6429 GB, free: 8.777 MB / 0.6043 GB Notification: Performance of collectInitialBindings (initialization): time 2.321e-05/0.006547, allocations: 39.72 kB / 0.6429 GB, free: 8.738 MB / 0.6043 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.124e-05/0.006588, allocations: 49.62 kB / 0.643 GB, free: 8.684 MB / 0.6043 GB Notification: Performance of setup shared object (initialization): time 0.0002848/0.006873, allocations: 326.8 kB / 0.6433 GB, free: 8.355 MB / 0.6043 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.182e-05/0.006895, allocations: 11.98 kB / 0.6433 GB, free: 8.344 MB / 0.6043 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.333e-05/0.006958, allocations: 114.6 kB / 0.6434 GB, free: 8.18 MB / 0.6043 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001113/0.00707, allocations: 158.3 kB / 0.6435 GB, free: 7.973 MB / 0.6043 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.007072, allocations: 0 / 0.6435 GB, free: 7.973 MB / 0.6043 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0001317/0.007204, allocations: 141.2 kB / 0.6437 GB, free: 7.828 MB / 0.6043 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.007217, allocations: 11.94 kB / 0.6437 GB, free: 7.816 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.007224, allocations: 4 kB / 0.6437 GB, free: 7.812 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.007236, allocations: 4 kB / 0.6437 GB, free: 7.809 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.392e-05/0.00731, allocations: 32.42 kB / 0.6437 GB, free: 7.777 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.055e-06/0.007318, allocations: 19.92 kB / 0.6437 GB, free: 7.758 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.918e-05/0.007377, allocations: 19.89 kB / 0.6438 GB, free: 7.738 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.875e-06/0.007385, allocations: 8 kB / 0.6438 GB, free: 7.73 MB / 0.6043 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,intNoReset.trigger_internal,intDef.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.153e-05/0.007456, allocations: 129.6 kB / 0.6439 GB, free: 7.594 MB / 0.6043 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.856e-05/0.007475, allocations: 11.98 kB / 0.6439 GB, free: 7.582 MB / 0.6043 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.704e-05/0.007502, allocations: 25.39 kB / 0.6439 GB, free: 7.562 MB / 0.6043 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.007506, allocations: 4 kB / 0.6439 GB, free: 7.559 MB / 0.6043 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.007508, allocations: 0 / 0.6439 GB, free: 7.559 MB / 0.6043 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.007512, allocations: 0 / 0.6439 GB, free: 7.559 MB / 0.6043 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002915/0.007803, allocations: 349.9 kB / 0.6443 GB, free: 7.191 MB / 0.6043 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.007806, allocations: 320 / 0.6443 GB, free: 7.191 MB / 0.6043 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.789e-05/0.007854, allocations: 19.92 kB / 0.6443 GB, free: 7.172 MB / 0.6043 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.007857, allocations: 7.938 kB / 0.6443 GB, free: 7.164 MB / 0.6043 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.007868, allocations: 4 kB / 0.6443 GB, free: 7.16 MB / 0.6043 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.007872, allocations: 4 kB / 0.6443 GB, free: 7.156 MB / 0.6043 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.007873, allocations: 0 / 0.6443 GB, free: 7.156 MB / 0.6043 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001583/0.008031, allocations: 280.3 kB / 0.6446 GB, free: 6.859 MB / 0.6043 GB Notification: Performance of postOpt removeConstants (simulation): time 2.181e-05/0.008053, allocations: 19.83 kB / 0.6446 GB, free: 6.84 MB / 0.6043 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.008067, allocations: 4 kB / 0.6446 GB, free: 6.836 MB / 0.6043 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.732e-05/0.008135, allocations: 11.98 kB / 0.6446 GB, free: 6.824 MB / 0.6043 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.439e-05/0.008169, allocations: 12.31 kB / 0.6446 GB, free: 6.812 MB / 0.6043 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/0.008176, allocations: 4 kB / 0.6446 GB, free: 6.809 MB / 0.6043 GB Notification: Performance of sorting global known variables: time 3.469e-05/0.008211, allocations: 49.98 kB / 0.6447 GB, free: 6.758 MB / 0.6043 GB Notification: Performance of sort global known variables: time 4e-08/0.008211, allocations: 0 / 0.6447 GB, free: 6.758 MB / 0.6043 GB Notification: Performance of remove unused functions: time 0.0001868/0.008398, allocations: 28 kB / 0.6447 GB, free: 6.73 MB / 0.6043 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 8.752e-05/0.008485, allocations: 80.42 kB / 0.6448 GB, free: 6.641 MB / 0.6043 GB Notification: Performance of simCode: created initialization part: time 0.0001095/0.008595, allocations: 81.11 kB / 0.6448 GB, free: 6.559 MB / 0.6043 GB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.008599, allocations: 4 kB / 0.6448 GB, free: 6.555 MB / 0.6043 GB Notification: Performance of simCode: created simulation system equations: time 3.912e-05/0.008639, allocations: 28.78 kB / 0.6449 GB, free: 6.523 MB / 0.6043 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002718/0.00891, allocations: 67.81 kB / 0.6449 GB, free: 6.457 MB / 0.6043 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003766/0.009287, allocations: 328.3 kB / 0.6453 GB, free: 6.102 MB / 0.6043 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.155e-05/0.009329, allocations: 75.98 kB / 0.6453 GB, free: 6.008 MB / 0.6043 GB Notification: Performance of simCode: alias equations: time 4.649e-05/0.009375, allocations: 21.55 kB / 0.6453 GB, free: 5.984 MB / 0.6043 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.732e-05/0.009462, allocations: 87.34 kB / 0.6454 GB, free: 5.898 MB / 0.6043 GB Notification: Performance of SimCode: time 5.71e-07/0.009463, allocations: 0 / 0.6454 GB, free: 5.898 MB / 0.6043 GB Notification: Performance of Templates: time 0.003636/0.0131, allocations: 2.225 MB / 0.6476 GB, free: 3.68 MB / 0.6043 GB " [Timeout remaining time 660] make -j1 -f AixLib_AixLib.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 660] (rm -f AixLib_AixLib.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo AixLib_AixLib.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < AixLib_AixLib.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/AixLib_AixLib.Utilities.Math.Examples.IntegratorWithReset.sim & ./AixLib_AixLib.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=240 -lv LOG_STATS > AixLib_AixLib.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.419503725133836]