Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr NeuralNetwork_main_NeuralNetwork.Examples.HelloWorld.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.0007583/0.0007583, 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.0007979/0.0007979, allocations: 169.9 kB / 22.46 MB, free: 2.102 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.867/0.867, allocations: 177.1 MB / 202.8 MB, free: 5.734 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.007651/0.007651, allocations: 1.115 MB / 260.3 MB, free: 12.16 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: "" <> buildModelFMU(NeuralNetwork.Examples.HelloWorld,fileNamePrefix="NeuralNetwork_main_NeuralNetwork_Examples_HelloWorld",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(NeuralNetwork.Examples.HelloWorld,fileNamePrefix="NeuralNetwork_main_NeuralNetwork_Examples_HelloWorld",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.144e-06/2.144e-06, allocations: 0 / 382.4 MB, free: 15.56 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.159e-05/3.373e-05, allocations: 4.953 kB / 382.4 MB, free: 15.55 MB / 362.7 MB Notification: Performance of NFInst.instantiate(NeuralNetwork.Examples.HelloWorld): time 0.002235/0.002268, allocations: 1.517 MB / 383.9 MB, free: 14.03 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007412/0.00301, allocations: 0.5143 MB / 384.4 MB, free: 13.51 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.605e-05/0.003076, allocations: 0 / 384.4 MB, free: 13.51 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001369/0.003213, allocations: 15.8 kB / 384.4 MB, free: 13.49 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 6.917e-05/0.003282, allocations: 23.8 kB / 384.4 MB, free: 13.47 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002346/0.003516, allocations: 47.83 kB / 384.5 MB, free: 13.42 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001123/0.003629, allocations: 71.77 kB / 384.5 MB, free: 13.35 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000133/0.003762, allocations: 23.95 kB / 384.6 MB, free: 13.33 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001454/0.003907, allocations: 59.77 kB / 384.6 MB, free: 13.27 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001144/0.004021, allocations: 39.89 kB / 384.7 MB, free: 13.23 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 2.134e-05/0.004043, allocations: 8 kB / 384.7 MB, free: 13.22 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.894e-05/0.004102, allocations: 19.97 kB / 384.7 MB, free: 13.2 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 5.52e-05/0.004157, allocations: 43.84 kB / 384.7 MB, free: 13.16 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 3.335e-05/0.00419, allocations: 19.94 kB / 384.8 MB, free: 13.14 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001515/0.004342, allocations: 115.6 kB / 384.9 MB, free: 13.03 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.004344, allocations: 7.938 kB / 384.9 MB, free: 13.02 MB / 362.7 MB Notification: Performance of FrontEnd: time 8.51e-07/0.004345, allocations: 0 / 384.9 MB, free: 13.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.13e-06/0.00435, allocations: 0 / 384.9 MB, free: 13.02 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0005281/0.004878, allocations: 341.8 kB / 385.2 MB, free: 12.66 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.004923, allocations: 8.031 kB / 385.2 MB, free: 12.65 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.309e-05/0.004956, allocations: 34.75 kB / 385.3 MB, free: 12.61 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.005059, allocations: 20.88 kB / 385.3 MB, free: 12.59 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001881/0.005247, allocations: 165.5 kB / 385.4 MB, free: 12.4 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.095e-05/0.005258, allocations: 4.375 kB / 385.4 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.289e-05/0.005271, allocations: 12.38 kB / 385.5 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001645/0.005436, allocations: 97.02 kB / 385.5 MB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.694e-06/0.005443, allocations: 192 / 385.5 MB, free: 12.29 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.005456, allocations: 12.11 kB / 385.6 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.954e-05/0.005476, allocations: 7.984 kB / 385.6 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001093/0.005585, allocations: 75.95 kB / 385.6 MB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003977/0.005983, allocations: 339.7 kB / 386 MB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001223/0.006105, allocations: 82.53 kB / 386.1 MB, free: 11.73 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.255e-05/0.006158, allocations: 56.89 kB / 386.1 MB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.476e-05/0.006223, allocations: 4 kB / 386.1 MB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.854e-05/0.006241, allocations: 34.56 kB / 386.1 MB, free: 11.62 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.012e-06/0.006242, allocations: 0 / 386.1 MB, free: 11.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002313/0.006473, allocations: 141.5 kB / 386.3 MB, free: 11.48 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.735e-05/0.006501, allocations: 55.41 kB / 386.3 MB, free: 11.41 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001063/0.006607, allocations: 169 kB / 386.5 MB, free: 11.24 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.254e-05/0.00662, allocations: 33.7 kB / 386.5 MB, free: 11.2 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.727e-05/0.006667, allocations: 108 kB / 386.6 MB, free: 11.09 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.3e-05/0.00669, allocations: 27.83 kB / 386.7 MB, free: 11.06 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.827e-05/0.006718, allocations: 17.72 kB / 386.7 MB, free: 11.04 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.542e-05/0.006794, allocations: 326.8 kB / 387 MB, free: 10.71 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.706e-05/0.006841, allocations: 32.23 kB / 387 MB, free: 10.68 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.788e-05/0.006879, allocations: 35.97 kB / 387.1 MB, free: 10.64 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.484e-05/0.006963, allocations: 72.83 kB / 387.1 MB, free: 10.57 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.006965, allocations: 0 / 387.1 MB, free: 10.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001181/0.007083, allocations: 113.5 kB / 387.3 MB, free: 10.45 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.307e-05/0.007096, allocations: 8 kB / 387.3 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.007101, allocations: 4 kB / 387.3 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.07e-05/0.007111, allocations: 0 / 387.3 MB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.113e-05/0.007182, allocations: 11.98 kB / 387.3 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.007187, allocations: 0 / 387.3 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.71e-05/0.007214, allocations: 15.88 kB / 387.3 MB, free: 10.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.422e-06/0.00722, allocations: 4 kB / 387.3 MB, free: 10.41 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * 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.122e-05/0.007292, allocations: 130.4 kB / 387.4 MB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.714e-05/0.007309, allocations: 7.953 kB / 387.4 MB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001752/0.007484, allocations: 134.4 kB / 387.6 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.007486, allocations: 0 / 387.6 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.007491, allocations: 0 / 387.6 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.007495, allocations: 3.984 kB / 387.6 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001378/0.007633, allocations: 176.7 kB / 387.7 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.007634, allocations: 0 / 387.7 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.81e-05/0.007672, allocations: 19.92 kB / 387.8 MB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.007674, allocations: 0 / 387.8 MB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.007681, allocations: 256 / 387.8 MB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.007683, allocations: 0 / 387.8 MB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.007686, allocations: 7.938 kB / 387.8 MB, free: 9.879 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001466/0.007832, allocations: 219.3 kB / 388 MB, free: 9.648 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.309e-05/0.007845, allocations: 7.953 kB / 388 MB, free: 9.641 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.33e-05/0.007859, allocations: 4 kB / 388 MB, free: 9.637 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.079e-05/0.007899, allocations: 7.984 kB / 388 MB, free: 9.629 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.816e-05/0.007927, allocations: 7.984 kB / 388 MB, free: 9.621 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-06/0.007931, allocations: 0 / 388 MB, free: 9.621 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.719e-05/0.007998, allocations: 138 kB / 388.1 MB, free: 9.488 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007998, allocations: 0 / 388.1 MB, free: 9.488 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001656/0.008164, allocations: 15.94 kB / 388.2 MB, free: 9.473 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0003458/0.00851, allocations: 0.7474 MB / 388.9 MB, free: 8.699 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001331/0.008643, allocations: 75.95 kB / 389 MB, free: 8.625 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.243e-06/0.008644, allocations: 0 / 389 MB, free: 8.625 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.203e-05/0.008686, allocations: 35.97 kB / 389 MB, free: 8.59 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001704/0.008857, allocations: 8 kB / 389 MB, free: 8.582 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001283/0.01014, allocations: 1.759 MB / 390.8 MB, free: 6.738 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.207e-05/0.01021, allocations: 108.1 kB / 390.9 MB, free: 6.613 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.64e-05/0.01026, allocations: 19.97 kB / 390.9 MB, free: 6.594 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.448e-05/0.01031, allocations: 36.47 kB / 390.9 MB, free: 6.559 MB / 362.7 MB Notification: Performance of SimCode: time 6.51e-07/0.01031, allocations: 0 / 390.9 MB, free: 6.559 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01841/0.02873, allocations: 2.968 MB / 393.9 MB, free: 3.699 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.163/7.192, allocations: 10.81 kB / 393.9 MB, free: 3.691 MB / 362.7 MB " [Timeout remaining time 653] (rm -f NeuralNetwork_main_NeuralNetwork.Examples.HelloWorld.pipe ; mkfifo NeuralNetwork_main_NeuralNetwork.Examples.HelloWorld.pipe ; head -c 1048576 < NeuralNetwork_main_NeuralNetwork.Examples.HelloWorld.pipe >> ../files/NeuralNetwork_main_NeuralNetwork.Examples.HelloWorld.sim & python3 -m fmpy simulate --output-file NeuralNetwork_main_NeuralNetwork.Examples.HelloWorld_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 NeuralNetwork_main_NeuralNetwork_Examples_HelloWorld.fmu > NeuralNetwork_main_NeuralNetwork.Examples.HelloWorld.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.937896391376853] Failed to read output from testmodel.py, exit status != 0: 7.274219887331128 7.283161358 7.276879107 Calling exit ...