Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.Drive.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.001426/0.001426, allocations: 110.4 kB / 18.94 MB, free: 2.949 MB / 14.72 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.458/1.458, allocations: 230.6 MB / 252.6 MB, free: 8.277 MB / 206.1 MB " [Timeout remaining time 178] 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.001594/0.001594, allocations: 219.9 kB / 309.2 MB, free: 3.117 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.04228/0.04228, allocations: 8.914 MB / 374.6 MB, free: 1.875 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/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 Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.Rotational.Drive,fileNamePrefix="HanserModelica_HanserModelica_Rotational_Drive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.Drive,fileNamePrefix="HanserModelica_HanserModelica_Rotational_Drive",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002754/0.002754, allocations: 87.86 kB / 0.4892 GB, free: 7.348 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.278/0.2808, allocations: 55.6 MB / 0.5435 GB, free: 26.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.003339/0.2841, allocations: 2.089 MB / 0.5455 GB, free: 25.32 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001602/0.2857, allocations: 1.157 MB / 0.5467 GB, free: 24.54 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.2858, allocations: 2.969 kB / 0.5467 GB, free: 24.54 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000359/0.2862, allocations: 116.9 kB / 0.5468 GB, free: 24.5 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003873/0.2866, allocations: 156.4 kB / 0.5469 GB, free: 24.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002554/0.2868, allocations: 110.7 kB / 0.547 GB, free: 24.37 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002518/0.2871, allocations: 223.9 kB / 0.5472 GB, free: 24.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001532/0.2872, allocations: 31.77 kB / 0.5473 GB, free: 24.26 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001441/0.2874, allocations: 105.8 kB / 0.5474 GB, free: 24.21 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001687/0.2876, allocations: 121.6 kB / 0.5475 GB, free: 24.17 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.712e-05/0.2876, allocations: 12.62 kB / 0.5475 GB, free: 24.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001151/0.2877, allocations: 51.02 kB / 0.5475 GB, free: 24.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.846e-05/0.2878, allocations: 50.67 kB / 0.5476 GB, free: 24.13 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.592e-05/0.2878, allocations: 92.64 kB / 0.5477 GB, free: 24.07 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002916/0.2881, allocations: 232.3 kB / 0.5479 GB, free: 23.97 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.2881, allocations: 0 / 0.5479 GB, free: 23.97 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2881, allocations: 0 / 0.5479 GB, free: 23.97 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.229e-05/0.2882, allocations: 0 / 0.5479 GB, free: 23.97 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0006161/0.2888, allocations: 453.5 kB / 0.5483 GB, free: 23.59 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.2888, allocations: 9.562 kB / 0.5483 GB, free: 23.59 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.435e-05/0.2888, allocations: 45.38 kB / 0.5484 GB, free: 23.54 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.598e-05/0.2889, allocations: 22.45 kB / 0.5484 GB, free: 23.53 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002622/0.2891, allocations: 200 kB / 0.5486 GB, free: 23.35 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.518e-05/0.2892, allocations: 7.859 kB / 0.5486 GB, free: 23.35 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.967e-05/0.2892, allocations: 17.59 kB / 0.5486 GB, free: 23.34 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002246/0.2894, allocations: 140 kB / 0.5488 GB, free: 23.26 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.435e-05/0.2894, allocations: 3.953 kB / 0.5488 GB, free: 23.26 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.425e-05/0.2894, allocations: 11.19 kB / 0.5488 GB, free: 23.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.2895, allocations: 3.219 kB / 0.5488 GB, free: 23.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001371/0.2896, allocations: 74.14 kB / 0.5488 GB, free: 23.22 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006287/0.2902, allocations: 0.5565 MB / 0.5494 GB, free: 22.77 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002224/0.2904, allocations: 90.77 kB / 0.5495 GB, free: 22.72 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.523e-05/0.2905, allocations: 36.38 kB / 0.5495 GB, free: 22.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.407e-05/0.2905, allocations: 3.375 kB / 0.5495 GB, free: 22.7 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001538/0.2907, allocations: 82.91 kB / 0.5496 GB, free: 22.64 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.392e-06/0.2907, allocations: 3.938 kB / 0.5496 GB, free: 22.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003153/0.291, allocations: 151.7 kB / 0.5497 GB, free: 22.56 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.282e-05/0.291, allocations: 51.41 kB / 0.5498 GB, free: 22.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001933/0.2912, allocations: 290.8 kB / 0.5501 GB, free: 22.34 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.251e-05/0.2912, allocations: 28.83 kB / 0.5501 GB, free: 22.31 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.86e-05/0.2913, allocations: 140.3 kB / 0.5502 GB, free: 22.18 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.286e-05/0.2913, allocations: 37.36 kB / 0.5503 GB, free: 22.15 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.059e-05/0.2914, allocations: 30.5 kB / 0.5503 GB, free: 22.13 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.22e-05/0.2914, allocations: 343.7 kB / 0.5506 GB, free: 21.8 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.871e-05/0.2915, allocations: 31.27 kB / 0.5507 GB, free: 21.79 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.171e-05/0.2915, allocations: 69.69 kB / 0.5507 GB, free: 21.73 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001344/0.2917, allocations: 106.4 kB / 0.5508 GB, free: 21.65 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.2917, allocations: 0 / 0.5508 GB, free: 21.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002097/0.2919, allocations: 146.8 kB / 0.551 GB, free: 21.58 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.2919, allocations: 5.906 kB / 0.551 GB, free: 21.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.2919, allocations: 0 / 0.551 GB, free: 21.58 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.2919, allocations: 2.906 kB / 0.551 GB, free: 21.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001374/0.2921, allocations: 32.41 kB / 0.551 GB, free: 21.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.2921, allocations: 3.062 kB / 0.551 GB, free: 21.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.446e-05/0.2921, allocations: 21.22 kB / 0.551 GB, free: 21.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.977e-06/0.2922, allocations: 6.906 kB / 0.551 GB, free: 21.55 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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.475e-05/0.2922, allocations: 152.1 kB / 0.5512 GB, free: 21.42 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.431e-05/0.2923, allocations: 24.98 kB / 0.5512 GB, free: 21.4 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002284/0.2925, allocations: 126.7 kB / 0.5513 GB, free: 21.34 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.2925, allocations: 3 kB / 0.5513 GB, free: 21.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.2925, allocations: 3.938 kB / 0.5513 GB, free: 21.33 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.2925, allocations: 0 / 0.5513 GB, free: 21.33 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001482/0.2926, allocations: 224.1 kB / 0.5515 GB, free: 21.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.2926, allocations: 0 / 0.5515 GB, free: 21.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.999e-05/0.2927, allocations: 15.58 kB / 0.5516 GB, free: 21.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.974e-06/0.2927, allocations: 7.031 kB / 0.5516 GB, free: 21.14 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.2928, allocations: 0 / 0.5516 GB, free: 21.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.2928, allocations: 3.938 kB / 0.5516 GB, free: 21.13 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.2928, allocations: 2.906 kB / 0.5516 GB, free: 21.13 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002711/0.293, allocations: 192.1 kB / 0.5518 GB, free: 21.02 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.363e-05/0.2931, allocations: 18.78 kB / 0.5518 GB, free: 21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.662e-05/0.2931, allocations: 2.875 kB / 0.5518 GB, free: 21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.261e-05/0.2931, allocations: 7.281 kB / 0.5518 GB, free: 21 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.811e-05/0.2932, allocations: 7.141 kB / 0.5518 GB, free: 20.99 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.749e-05/0.2932, allocations: 6.516 kB / 0.5518 GB, free: 20.99 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001437/0.2933, allocations: 207.9 kB / 0.552 GB, free: 20.89 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2933, allocations: 0 / 0.552 GB, free: 20.89 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002448/0.2936, allocations: 44.42 kB / 0.552 GB, free: 20.88 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inertia.w,load.phi) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001754/0.2953, allocations: 1.041 MB / 0.5531 GB, free: 20.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002113/0.2956, allocations: 79.23 kB / 0.5531 GB, free: 20.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.2956, allocations: 0 / 0.5531 GB, free: 20.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 7.519e-05/0.2956, allocations: 34.06 kB / 0.5532 GB, free: 20.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000305/0.2959, allocations: 41.36 kB / 0.5532 GB, free: 20.06 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001848/0.2978, allocations: 2.126 MB / 0.5553 GB, free: 18.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000151/0.2979, allocations: 0.7405 MB / 0.556 GB, free: 17.78 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.439e-05/0.298, allocations: 24.7 kB / 0.556 GB, free: 17.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.003e-05/0.2981, allocations: 63.67 kB / 0.5561 GB, free: 17.73 MB / 382.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2981, allocations: 0 / 0.5561 GB, free: 17.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03251/0.3306, allocations: 4.66 MB / 0.5606 GB, free: 16.79 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.43/11.76, allocations: 9.703 kB / 0.5606 GB, free: 16.79 MB / 382.1 MB " [Timeout remaining time 648] (rm -f HanserModelica_HanserModelica.Rotational.Drive.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.Drive.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.Drive.pipe >> ../files/HanserModelica_HanserModelica.Rotational.Drive.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Rotational_Drive_fmu --startTime=0 --stopTime=10 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Rotational_Drive.fmu > HanserModelica_HanserModelica.Rotational.Drive.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.593449431005865] Failed to read output from testmodel.py, exit status != 0: 11.930234475061297 11.959953843 11.666051006 Calling exit ...