Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr NeuralNetwork_main_NeuralNetwork.Examples.NARX.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.001165/0.001165, allocations: 92.2 kB / 20.19 MB, free: 4.359 MB / 18.57 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.001091/0.001091, allocations: 173 kB / 23.49 MB, free: 1.059 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.996/0.996, allocations: 177.1 MB / 203.8 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NeuralNetwork main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NeuralNetwork main/package.mo): time 0.006929/0.006929, allocations: 1.116 MB / 261.4 MB, free: 12.01 MB / 250.7 MB " [Timeout remaining time 180] Using package NeuralNetwork with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NeuralNetwork main/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: translateModel(NeuralNetwork.Examples.NARX,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="NeuralNetwork_main_NeuralNetwork.Examples.NARX") translateModel(NeuralNetwork.Examples.NARX,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="NeuralNetwork_main_NeuralNetwork.Examples.NARX") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 330.7 MB, free: 19.03 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.831e-05/3.004e-05, allocations: 4.562 kB / 330.7 MB, free: 19.03 MB / 266.7 MB Notification: Performance of NFInst.instantiate(NeuralNetwork.Examples.NARX): time 0.002571/0.002601, allocations: 2.011 MB / 332.8 MB, free: 17 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001416/0.004017, allocations: 1.406 MB / 334.2 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001656/0.004182, allocations: 11.88 kB / 334.2 MB, free: 15.58 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003068/0.00725, allocations: 7.291 MB / 341.5 MB, free: 8.273 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001979/0.009229, allocations: 4.936 MB / 346.4 MB, free: 3.328 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006729/0.009902, allocations: 327 kB / 346.7 MB, free: 3.008 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001533/0.01143, allocations: 2.972 MB / 349.7 MB, free: 32 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003141/0.01175, allocations: 343 kB / 350 MB, free: 15.69 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001564/0.01331, allocations: 2.383 MB / 352.4 MB, free: 13.3 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005536/0.01885, allocations: 8.065 MB / 360.5 MB, free: 5.227 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005723/0.01942, allocations: 0.625 MB / 361.1 MB, free: 4.602 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008519/0.02027, allocations: 0.8396 MB / 361.9 MB, free: 3.762 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001797/0.02207, allocations: 2.899 MB / 364.8 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001255/0.02333, allocations: 1.74 MB / 366.6 MB, free: 15.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005052/0.02838, allocations: 7.453 MB / 374 MB, free: 7.637 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.02838, allocations: 4 kB / 374 MB, free: 7.633 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.02838, allocations: 0 / 374 MB, free: 7.633 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.069e-05/0.02847, allocations: 0 / 374 MB, free: 7.633 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 244 * Number of variables: 244 Notification: Performance of Generate backend data structure: time 0.06043/0.08891, allocations: 12.77 MB / 386.8 MB, free: 10.74 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/0.08895, allocations: 11.97 kB / 386.8 MB, free: 10.73 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001468/0.09042, allocations: 0.9479 MB / 387.8 MB, free: 9.777 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004169/0.09459, allocations: 3.835 MB / 391.6 MB, free: 5.883 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.893e-05/0.09464, allocations: 57.61 kB / 391.6 MB, free: 5.828 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004308/0.09507, allocations: 68.38 kB / 391.7 MB, free: 5.762 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004779/0.09985, allocations: 2.496 MB / 394.2 MB, free: 3.227 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.722e-05/0.09986, allocations: 192 / 394.2 MB, free: 3.227 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003589/0.1002, allocations: 28.38 kB / 394.2 MB, free: 3.199 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001271/0.1003, allocations: 121.9 kB / 394.4 MB, free: 3.082 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01898/0.1193, allocations: 4.094 MB / 398.5 MB, free: 14.96 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02044/0.1398, allocations: 12.23 MB / 410.7 MB, free: 2.672 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00303/0.1428, allocations: 1.371 MB / 412 MB, free: 1.258 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002452/0.1453, allocations: 1.23 MB / 413.3 MB, free: 0 / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1462/0.2915, allocations: 37.45 kB / 413.3 MB, free: 84.01 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004109/0.2956, allocations: 2.021 MB / 415.3 MB, free: 83.74 MB / 330.7 MB Notification: Performance of pre-optimization done (n=129): time 6.292e-06/0.2956, allocations: 0 / 415.3 MB, free: 83.74 MB / 330.7 MB Notification: Performance of matching and sorting (n=129): time 0.007356/0.303, allocations: 4.674 MB / 420 MB, free: 83.39 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.993e-05/0.303, allocations: 201.6 kB / 420.2 MB, free: 83.21 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005512/0.3085, allocations: 8.389 MB / 428.6 MB, free: 76.27 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005626/0.3091, allocations: 53.7 kB / 428.6 MB, free: 76.21 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002335/0.3114, allocations: 4.382 MB / 433 MB, free: 71.9 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006965/0.3121, allocations: 411.9 kB / 433.4 MB, free: 71.55 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008259/0.313, allocations: 217.3 kB / 433.6 MB, free: 71.33 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.593e-05/0.313, allocations: 0.5291 MB / 434.2 MB, free: 70.79 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001582/0.3146, allocations: 0.9798 MB / 435.2 MB, free: 69.8 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001616/0.3162, allocations: 1.133 MB / 436.3 MB, free: 68.61 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003365/0.3196, allocations: 2.304 MB / 438.6 MB, free: 66.25 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.6e-06/0.3196, allocations: 1.281 kB / 438.6 MB, free: 66.25 MB / 330.7 MB Notification: Performance of matching and sorting (n=148) (initialization): time 0.004939/0.3245, allocations: 3.316 MB / 441.9 MB, free: 62.89 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.239e-05/0.3246, allocations: 105.1 kB / 442 MB, free: 62.77 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.3246, allocations: 0 / 442 MB, free: 62.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.195e-05/0.3246, allocations: 8 kB / 442 MB, free: 62.76 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001952/0.3266, allocations: 348.5 kB / 442.4 MB, free: 62.44 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.3266, allocations: 8 kB / 442.4 MB, free: 62.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001792/0.3284, allocations: 225.5 kB / 442.6 MB, free: 62.24 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002199/0.3286, allocations: 43.98 kB / 442.6 MB, free: 62.2 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 60 (sampler.firstTrigger,$PRE.sampler.firstTrigger,timeDelay.firstTrigger,$PRE.timeDelay.firstTrigger,timeDelay.sampleTrigger,$whenCondition2,sampler.sampleTrigger,$whenCondition3,sampler.y[1],timeTable_u1.nextEventScaled,timeTable_u1.nextEvent,$PRE.timeTable_u1.nextEvent,timeTable_u1.last,timeTable_u1.b,timeTable_u1.a,$whenCondition5,timeTable_u2.nextEventScaled,timeTable_u2.nextEvent,$PRE.timeTable_u2.nextEvent,timeTable_u2.last,timeTable_u2.b,timeTable_u2.a,sampler.y[2],$whenCondition4,sampler.y[3],timeDelay.y[14],$PRE.timeDelay.y[14],timeDelay.y[13],$PRE.timeDelay.y[13],timeDelay.y[12],$PRE.timeDelay.y[12],timeDelay.y[11],$PRE.timeDelay.y[11],timeDelay.y[10],$PRE.timeDelay.y[10],timeDelay.y[9],$PRE.timeDelay.y[9],timeDelay.y[8],$PRE.timeDelay.y[8],timeDelay.y[7],$PRE.timeDelay.y[7],timeDelay.y[6],$PRE.timeDelay.y[6],timeDelay.y[5],$PRE.timeDelay.y[5],timeDelay.y[4],$PRE.timeDelay.y[4],timeDelay.y[3],$PRE.timeDelay.y[3],timeDelay.y[2],$PRE.timeDelay.y[2],timeDelay.y[1],$PRE.timeDelay.y[1],timeTable_y.nextEventScaled,timeTable_y.nextEvent,$PRE.timeTable_y.nextEvent,timeTable_y.last,timeTable_y.b,timeTable_y.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (133): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 3 * 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 0.001116/0.3297, allocations: 352.4 kB / 443 MB, free: 61.83 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008012/0.3305, allocations: 0.9121 MB / 443.9 MB, free: 60.91 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008471/0.339, allocations: 4.607 MB / 448.5 MB, free: 56.29 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.339, allocations: 12 kB / 448.5 MB, free: 56.27 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.339, allocations: 4.656 kB / 448.5 MB, free: 56.27 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.278e-06/0.339, allocations: 11.52 kB / 448.5 MB, free: 56.27 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0111/0.3501, allocations: 11.22 MB / 459.7 MB, free: 45.05 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.646e-06/0.3501, allocations: 0 / 459.7 MB, free: 45.05 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001648/0.3517, allocations: 291.4 kB / 460 MB, free: 44.78 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.673e-06/0.3518, allocations: 4 kB / 460 MB, free: 44.78 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002104/0.352, allocations: 35.97 kB / 460.1 MB, free: 44.74 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.411e-06/0.352, allocations: 8 kB / 460.1 MB, free: 44.73 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.352, allocations: 0 / 460.1 MB, free: 44.73 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004586/0.3566, allocations: 3.897 MB / 464 MB, free: 40.77 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003128/0.3569, allocations: 0.7068 MB / 464.7 MB, free: 40.08 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004708/0.3573, allocations: 39.98 kB / 464.7 MB, free: 40.04 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001354/0.3587, allocations: 171.9 kB / 464.9 MB, free: 39.88 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005102/0.3592, allocations: 76.61 kB / 465 MB, free: 39.8 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002175/0.3594, allocations: 47.97 kB / 465 MB, free: 39.76 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003154/0.3626, allocations: 4.341 MB / 469.4 MB, free: 35.46 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3626, allocations: 0 / 469.4 MB, free: 35.46 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001272/0.3638, allocations: 1.1 MB / 470.5 MB, free: 34.39 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 41 ($whenCondition1,timeTable_y.a,timeTable_y.b,timeTable_y.last,timeTable_y.nextEvent,timeTable_y.nextEventScaled,sampler.sampleTrigger,timeDelay.sampleTrigger,$whenCondition3,$whenCondition2,$whenCondition4,$whenCondition5,timeDelay.firstTrigger,timeDelay.y[1],timeDelay.y[2],timeDelay.y[3],timeDelay.y[4],timeDelay.y[5],timeDelay.y[6],timeDelay.y[7],timeDelay.y[8],timeDelay.y[9],timeDelay.y[10],timeDelay.y[11],timeDelay.y[12],timeDelay.y[13],timeDelay.y[14],timeTable_u1.a,timeTable_u1.b,timeTable_u1.last,timeTable_u1.nextEvent,timeTable_u1.nextEventScaled,sampler.firstTrigger,sampler.y[1],sampler.y[2],sampler.y[3],timeTable_u2.a,timeTable_u2.b,timeTable_u2.last,timeTable_u2.nextEvent,timeTable_u2.nextEventScaled) * Number of discrete states: 30 (timeTable_u1.nextEvent,timeTable_u1.last,timeTable_u1.nextEventScaled,timeTable_u1.b,timeTable_u1.a,$whenCondition5,timeTable_u2.nextEvent,timeTable_u2.last,timeTable_u2.nextEventScaled,timeTable_u2.b,timeTable_u2.a,$whenCondition4,timeDelay.y[1],timeDelay.y[2],timeDelay.y[3],timeDelay.y[4],timeDelay.y[6],timeDelay.y[7],timeDelay.y[8],timeDelay.y[9],timeDelay.u[3],timeDelay.y[11],timeDelay.y[12],timeDelay.y[13],timeTable_y.nextEvent,timeTable_y.last,timeTable_y.nextEventScaled,timeTable_y.b,timeTable_y.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (114): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 19 * 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.0004579/0.3643, allocations: 257.3 kB / 470.7 MB, free: 34.14 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003742/0.368, allocations: 2.855 MB / 473.6 MB, free: 31.21 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3681, allocations: 3.938 kB / 473.6 MB, free: 31.2 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001807/0.3699, allocations: 1.546 MB / 475.1 MB, free: 29.6 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001493/0.3714, allocations: 291.3 kB / 475.4 MB, free: 29.31 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/0.3814, allocations: 12.51 MB / 487.9 MB, free: 16.69 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008913/0.3823, allocations: 1.698 MB / 489.6 MB, free: 14.96 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001852/0.3841, allocations: 293 kB / 489.9 MB, free: 14.68 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001287/0.3854, allocations: 68.47 kB / 489.9 MB, free: 14.61 MB / 330.7 MB Notification: Performance of SimCode: time 1.733e-06/0.3854, allocations: 0 / 489.9 MB, free: 14.61 MB / 330.7 MB Notification: Performance of Templates: time 0.05973/0.4451, allocations: 48.76 MB / 0.5261 GB, free: 13.77 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f NeuralNetwork_main_NeuralNetwork.Examples.NARX.makefile [Timeout 660] (rm -f NeuralNetwork_main_NeuralNetwork.Examples.NARX.pipe ; mkfifo NeuralNetwork_main_NeuralNetwork.Examples.NARX.pipe ; head -c 1048576 < NeuralNetwork_main_NeuralNetwork.Examples.NARX.pipe >> ../files/NeuralNetwork_main_NeuralNetwork.Examples.NARX.sim & ./NeuralNetwork_main_NeuralNetwork.Examples.NARX -abortSlowSimulation -alarm=240 -lv LOG_STATS > NeuralNetwork_main_NeuralNetwork.Examples.NARX.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.816622740123421]