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.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.001324/0.001324, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.001624/0.001624, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9314/0.9314, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo", uses=false) [Timeout 180] "[/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:190:writable] Warning: Lexer treating \\ as \\\\, since \\e is not a valid Modelica escape sequence. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Examples/PPD12/Structure.mo:531:21-531:198:writable] Warning: Lexer treating \\ as \\\\, since \\< is not a valid Modelica escape sequence. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/package.mo): time 0.7196/0.7196, allocations: 154.6 MB / 413.7 MB, free: 0.8242 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/Cryptographics/BaseClasses/sha.mo:2:1-19:8:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/Utilities/File/sha2.mo:2:1-9:9:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 179] Using package IDEAS with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS master/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) 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 0 / 0.618 GB, free: 13.71 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.28e-05/1.428e-05, allocations: 5.375 kB / 0.6181 GB, free: 13.71 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.001942/0.001956, allocations: 1.79 MB / 0.6198 GB, free: 11.91 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.0007447/0.002701, allocations: 0.5531 MB / 0.6203 GB, free: 11.35 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.495e-05/0.002786, allocations: 3.938 kB / 0.6203 GB, free: 11.34 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0001179/0.002904, allocations: 27.73 kB / 0.6204 GB, free: 11.32 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 5.657e-05/0.00296, allocations: 27.67 kB / 0.6204 GB, free: 11.29 MB / 0.5886 GB Notification: Performance of NFTyping.typeClassSections: time 0.00019/0.00315, allocations: 67.84 kB / 0.6205 GB, free: 11.22 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001665/0.003317, allocations: 183.4 kB / 0.6206 GB, free: 11.04 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001158/0.003433, allocations: 29.8 kB / 0.6207 GB, free: 11.01 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 8.6e-05/0.003519, allocations: 79.8 kB / 0.6207 GB, free: 10.93 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 5.264e-05/0.003571, allocations: 43.81 kB / 0.6208 GB, free: 10.89 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 2.465e-05/0.003596, allocations: 12 kB / 0.6208 GB, free: 10.88 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 1.218e-05/0.003608, allocations: 8 kB / 0.6208 GB, free: 10.87 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 2.652e-05/0.003635, allocations: 27.84 kB / 0.6208 GB, free: 10.84 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 3.907e-05/0.003674, allocations: 39.91 kB / 0.6209 GB, free: 10.8 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0001402/0.003814, allocations: 139.4 kB / 0.621 GB, free: 10.67 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 1.482e-06/0.003815, allocations: 0 / 0.621 GB, free: 10.67 MB / 0.5886 GB Notification: Performance of FrontEnd: time 6.91e-07/0.003816, allocations: 0 / 0.621 GB, free: 10.67 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 3.888e-06/0.00382, allocations: 4 kB / 0.621 GB, free: 10.66 MB / 0.5886 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.0004996/0.004319, allocations: 427.2 kB / 0.6214 GB, free: 10.21 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/0.004355, allocations: 9.469 kB / 0.6214 GB, free: 10.2 MB / 0.5886 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.047e-05/0.004385, allocations: 42.75 kB / 0.6215 GB, free: 10.15 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.303e-05/0.004418, allocations: 20.8 kB / 0.6215 GB, free: 10.13 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002/0.004618, allocations: 177.5 kB / 0.6217 GB, free: 9.934 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.00463, allocations: 8.375 kB / 0.6217 GB, free: 9.926 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.22e-05/0.004652, allocations: 16.31 kB / 0.6217 GB, free: 9.91 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000185/0.004837, allocations: 145.7 kB / 0.6218 GB, free: 9.75 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.355e-06/0.004845, allocations: 192 / 0.6218 GB, free: 9.75 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.004857, allocations: 8.125 kB / 0.6218 GB, free: 9.742 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.004862, allocations: 4 kB / 0.6218 GB, free: 9.738 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001214/0.004984, allocations: 67.88 kB / 0.6219 GB, free: 9.672 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006022/0.005586, allocations: 0.6878 MB / 0.6226 GB, free: 8.926 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 9.147e-05/0.005677, allocations: 50.55 kB / 0.6226 GB, free: 8.867 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.313e-05/0.00573, allocations: 24.84 kB / 0.6226 GB, free: 8.84 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.005749, allocations: 7.984 kB / 0.6226 GB, free: 8.832 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001461/0.005895, allocations: 130.7 kB / 0.6228 GB, free: 8.68 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=11): time 1.012e-06/0.005896, allocations: 4 kB / 0.6228 GB, free: 8.676 MB / 0.5886 GB Notification: Performance of matching and sorting (n=11): time 0.0002883/0.006184, allocations: 169.3 kB / 0.6229 GB, free: 8.504 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.215e-05/0.006237, allocations: 132.5 kB / 0.6231 GB, free: 8.344 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001207/0.006357, allocations: 199.1 kB / 0.6232 GB, free: 8.137 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 1.285e-05/0.00637, allocations: 29.7 kB / 0.6233 GB, free: 8.102 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 6.137e-05/0.006431, allocations: 131.9 kB / 0.6234 GB, free: 7.969 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 2.302e-05/0.006454, allocations: 39.84 kB / 0.6234 GB, free: 7.93 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.963e-05/0.006494, allocations: 49.89 kB / 0.6235 GB, free: 7.875 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 7.857e-05/0.006573, allocations: 330.8 kB / 0.6238 GB, free: 7.543 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.651e-05/0.006639, allocations: 39.97 kB / 0.6238 GB, free: 7.504 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001013/0.00674, allocations: 134.6 kB / 0.624 GB, free: 7.32 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001863/0.006927, allocations: 202.3 kB / 0.6242 GB, free: 7.07 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.006931, allocations: 15.92 kB / 0.6242 GB, free: 7.055 MB / 0.5886 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003168/0.007248, allocations: 205.5 kB / 0.6244 GB, free: 6.848 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.007261, allocations: 12.06 kB / 0.6244 GB, free: 6.836 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.007268, allocations: 4 kB / 0.6244 GB, free: 6.832 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.007281, allocations: 4 kB / 0.6244 GB, free: 6.828 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.813e-05/0.007349, allocations: 35.91 kB / 0.6244 GB, free: 6.793 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.007357, allocations: 4 kB / 0.6244 GB, free: 6.789 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.346e-05/0.00743, allocations: 27.88 kB / 0.6245 GB, free: 6.762 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/0.007441, allocations: 12 kB / 0.6245 GB, free: 6.75 MB / 0.5886 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 8.201e-05/0.007523, allocations: 134.7 kB / 0.6246 GB, free: 6.609 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.563e-05/0.007539, allocations: 15.91 kB / 0.6246 GB, free: 6.594 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.07e-05/0.007569, allocations: 29.45 kB / 0.6246 GB, free: 6.566 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.007572, allocations: 0 / 0.6246 GB, free: 6.566 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.007577, allocations: 0 / 0.6246 GB, free: 6.566 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.007582, allocations: 4 kB / 0.6246 GB, free: 6.562 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004332/0.008015, allocations: 488.8 kB / 0.6251 GB, free: 6.035 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.008017, allocations: 0 / 0.6251 GB, free: 6.035 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.329e-05/0.00807, allocations: 15.98 kB / 0.6251 GB, free: 6.02 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.008071, allocations: 4 kB / 0.6251 GB, free: 6.016 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.008082, allocations: 8 kB / 0.6251 GB, free: 6.008 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.008083, allocations: 4 kB / 0.6251 GB, free: 6.004 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.008084, allocations: 0 / 0.6251 GB, free: 6.004 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002822/0.008366, allocations: 359.2 kB / 0.6255 GB, free: 5.633 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 1.789e-05/0.008384, allocations: 23.86 kB / 0.6255 GB, free: 5.609 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.595e-05/0.0084, allocations: 4 kB / 0.6255 GB, free: 5.605 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.412e-05/0.008484, allocations: 20.02 kB / 0.6255 GB, free: 5.586 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.785e-05/0.008522, allocations: 16.3 kB / 0.6255 GB, free: 5.57 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.015e-06/0.00853, allocations: 4 kB / 0.6255 GB, free: 5.566 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 7.389e-05/0.008604, allocations: 148.2 kB / 0.6257 GB, free: 5.422 MB / 0.5886 GB Notification: Performance of sort global known variables: time 6e-08/0.008604, allocations: 0 / 0.6257 GB, free: 5.422 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0002093/0.008813, allocations: 28 kB / 0.6257 GB, free: 5.395 MB / 0.5886 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.00042/0.009233, allocations: 0.8967 MB / 0.6266 GB, free: 4.461 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0001797/0.009413, allocations: 115.8 kB / 0.6267 GB, free: 4.348 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.009415, allocations: 0 / 0.6267 GB, free: 4.348 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 7.527e-05/0.00949, allocations: 49.03 kB / 0.6267 GB, free: 4.301 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003419/0.009832, allocations: 72.23 kB / 0.6268 GB, free: 4.238 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00162/0.01145, allocations: 2.242 MB / 0.629 GB, free: 1.809 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.914e-05/0.01153, allocations: 112.2 kB / 0.6291 GB, free: 1.676 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 5.989e-05/0.01159, allocations: 21.67 kB / 0.6291 GB, free: 1.656 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.338e-05/0.01165, allocations: 52.48 kB / 0.6292 GB, free: 1.605 MB / 0.5886 GB Notification: Performance of SimCode: time 7.01e-07/0.01166, allocations: 3.938 kB / 0.6292 GB, free: 1.602 MB / 0.5886 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01673/0.02838, allocations: 4.899 MB / 0.634 GB, free: 12.91 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.996/7.025, allocations: 3.984 kB / 0.634 GB, free: 12.91 MB / 0.6042 GB " [Timeout remaining time 653] (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 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_IntegratorWithReset.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 9.778835074976087] Failed to read output from testmodel.py, exit status != 0: 7.108525021933019 7.121891565 7.116178504 Calling exit ...