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.001477/0.001477, allocations: 117.1 kB / 17.16 MB, free: 5.895 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.644/1.644, allocations: 230.6 MB / 250.5 MB, free: 9.387 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.002544/0.002544, allocations: 208.8 kB / 306.7 MB, free: 4.332 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.06108/0.06108, allocations: 8.911 MB / 371.7 MB, free: 3.469 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.Drive,fileNamePrefix="HanserModelica_HanserModelica_Rotational_Drive",fmuType="cs",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.002961/0.002961, allocations: 79.88 kB / 496.4 MB, free: 9.867 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4055/0.4085, allocations: 55.56 MB / 0.539 GB, free: 26.63 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.005804/0.4143, allocations: 2.063 MB / 0.5411 GB, free: 25.2 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002668/0.417, allocations: 1.149 MB / 0.5422 GB, free: 24.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003519/0.4173, allocations: 3.25 kB / 0.5422 GB, free: 24.41 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006354/0.418, allocations: 116.6 kB / 0.5423 GB, free: 24.38 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007388/0.4187, allocations: 156.4 kB / 0.5424 GB, free: 24.3 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004688/0.4192, allocations: 101 kB / 0.5425 GB, free: 24.25 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005151/0.4197, allocations: 220 kB / 0.5428 GB, free: 24.16 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002225/0.4199, allocations: 38.81 kB / 0.5428 GB, free: 24.14 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002686/0.4202, allocations: 105.6 kB / 0.5429 GB, free: 24.09 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002915/0.4205, allocations: 124.5 kB / 0.543 GB, free: 24.05 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.12e-05/0.4205, allocations: 12.47 kB / 0.543 GB, free: 24.05 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002725/0.4208, allocations: 53.41 kB / 0.5431 GB, free: 24.04 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001087/0.4209, allocations: 43.28 kB / 0.5431 GB, free: 24.01 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001534/0.421, allocations: 89.47 kB / 0.5432 GB, free: 23.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005411/0.4216, allocations: 231.5 kB / 0.5434 GB, free: 23.86 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.929e-06/0.4216, allocations: 0 / 0.5434 GB, free: 23.86 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.006e-06/0.4216, allocations: 2.781 kB / 0.5434 GB, free: 23.86 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.133e-05/0.4216, allocations: 0 / 0.5434 GB, free: 23.86 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.001265/0.4229, allocations: 0.5211 MB / 0.5439 GB, free: 23.38 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.99e-05/0.4229, allocations: 9.781 kB / 0.5439 GB, free: 23.38 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.263e-05/0.423, allocations: 3.672 kB / 0.5439 GB, free: 23.38 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.874e-05/0.423, allocations: 45.2 kB / 0.544 GB, free: 23.33 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.404e-05/0.4231, allocations: 22.36 kB / 0.544 GB, free: 23.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005817/0.4237, allocations: 254.7 kB / 0.5443 GB, free: 23.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.696e-05/0.4237, allocations: 14.61 kB / 0.5443 GB, free: 23.06 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.072e-05/0.4238, allocations: 17.5 kB / 0.5443 GB, free: 23.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000359/0.4241, allocations: 139 kB / 0.5444 GB, free: 22.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.331e-05/0.4242, allocations: 7.891 kB / 0.5444 GB, free: 22.97 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.229e-05/0.4242, allocations: 4 kB / 0.5444 GB, free: 22.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.4242, allocations: 3.219 kB / 0.5444 GB, free: 22.96 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002035/0.4244, allocations: 76.05 kB / 0.5445 GB, free: 22.94 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00106/0.4254, allocations: 0.6287 MB / 0.5451 GB, free: 22.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002936/0.4257, allocations: 86.56 kB / 0.5452 GB, free: 22.37 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.002e-05/0.4258, allocations: 33.23 kB / 0.5452 GB, free: 22.35 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.409e-05/0.4259, allocations: 7.172 kB / 0.5452 GB, free: 22.34 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002559/0.4261, allocations: 91.06 kB / 0.5453 GB, free: 22.27 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 2.695e-06/0.4261, allocations: 0 / 0.5453 GB, free: 22.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0005042/0.4266, allocations: 152.8 kB / 0.5455 GB, free: 22.2 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.265e-05/0.4267, allocations: 51.41 kB / 0.5455 GB, free: 22.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003137/0.427, allocations: 282.9 kB / 0.5458 GB, free: 21.99 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.876e-05/0.427, allocations: 25.7 kB / 0.5458 GB, free: 21.96 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.4271, allocations: 148.6 kB / 0.546 GB, free: 21.82 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.572e-05/0.4272, allocations: 41.55 kB / 0.546 GB, free: 21.79 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.747e-05/0.4272, allocations: 31.47 kB / 0.546 GB, free: 21.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.732e-05/0.4273, allocations: 333.1 kB / 0.5463 GB, free: 21.44 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.006e-05/0.4274, allocations: 33.89 kB / 0.5464 GB, free: 21.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.261e-05/0.4275, allocations: 62.64 kB / 0.5464 GB, free: 21.38 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001794/0.4277, allocations: 110.1 kB / 0.5465 GB, free: 21.3 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.4277, allocations: 0 / 0.5465 GB, free: 21.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002773/0.428, allocations: 142.7 kB / 0.5467 GB, free: 21.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.107e-05/0.428, allocations: 6.594 kB / 0.5467 GB, free: 21.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.836e-06/0.428, allocations: 4 kB / 0.5467 GB, free: 21.22 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.079e-05/0.428, allocations: 3.406 kB / 0.5467 GB, free: 21.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001835/0.4282, allocations: 32.72 kB / 0.5467 GB, free: 21.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.525e-06/0.4282, allocations: 3.938 kB / 0.5467 GB, free: 21.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.165e-05/0.4283, allocations: 14.08 kB / 0.5467 GB, free: 21.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.417e-05/0.4283, allocations: 7.25 kB / 0.5467 GB, free: 21.2 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 0.0001807/0.4285, allocations: 144.8 kB / 0.5469 GB, free: 21.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.52e-05/0.4285, allocations: 18.36 kB / 0.5469 GB, free: 21.06 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.438e-05/0.4286, allocations: 30.64 kB / 0.5469 GB, free: 21.04 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.97e-06/0.4286, allocations: 0 / 0.5469 GB, free: 21.04 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.307e-06/0.4286, allocations: 0 / 0.5469 GB, free: 21.04 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.4286, allocations: 0 / 0.5469 GB, free: 21.04 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003048/0.4289, allocations: 253.6 kB / 0.5472 GB, free: 20.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.4289, allocations: 0 / 0.5472 GB, free: 20.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001203/0.4291, allocations: 15.91 kB / 0.5472 GB, free: 20.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.149e-06/0.4291, allocations: 3.281 kB / 0.5472 GB, free: 20.81 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.719e-05/0.4291, allocations: 3.938 kB / 0.5472 GB, free: 20.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.4291, allocations: 3.156 kB / 0.5472 GB, free: 20.81 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4291, allocations: 0 / 0.5472 GB, free: 20.81 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004382/0.4295, allocations: 197.5 kB / 0.5474 GB, free: 20.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.875e-05/0.4296, allocations: 91.47 kB / 0.5475 GB, free: 20.58 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.87e-05/0.4296, allocations: 7.094 kB / 0.5475 GB, free: 20.58 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.843e-05/0.4297, allocations: 0 / 0.5475 GB, free: 20.58 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.854e-05/0.4298, allocations: 10.75 kB / 0.5475 GB, free: 20.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.336e-05/0.4298, allocations: 6.219 kB / 0.5475 GB, free: 20.57 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002151/0.43, allocations: 206.6 kB / 0.5477 GB, free: 20.46 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.43, allocations: 4 kB / 0.5477 GB, free: 20.46 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003609/0.4304, allocations: 41.55 kB / 0.5477 GB, free: 20.45 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.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * 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.002175/0.4325, allocations: 1.037 MB / 0.5487 GB, free: 19.69 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003146/0.4329, allocations: 81.75 kB / 0.5488 GB, free: 19.67 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.4329, allocations: 0 / 0.5488 GB, free: 19.67 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001073/0.433, allocations: 33.83 kB / 0.5489 GB, free: 19.66 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004236/0.4334, allocations: 49.2 kB / 0.5489 GB, free: 19.64 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003491/0.4369, allocations: 2.129 MB / 0.551 GB, free: 18.06 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002913/0.4372, allocations: 0.7446 MB / 0.5517 GB, free: 17.36 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001269/0.4373, allocations: 18.36 kB / 0.5517 GB, free: 17.35 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001158/0.4374, allocations: 63.97 kB / 0.5518 GB, free: 17.31 MB / 382.1 MB Notification: Performance of SimCode: time 1.323e-06/0.4374, allocations: 4 kB / 0.5518 GB, free: 17.3 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0268/0.4642, allocations: 4.482 MB / 0.5562 GB, free: 16.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.22/9.684, allocations: 26.5 kB / 0.5562 GB, free: 16.41 MB / 382.1 MB " [Timeout remaining time 650] (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: 13.010946545982733] Failed to read output from testmodel.py, exit status != 0: 9.86851178703364 9.894382916 9.468436591 Calling exit ...