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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 104.5 kB / 16.45 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 225.6 MB / 244.8 MB, free: 14.15 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001532/0.001532, allocations: 187.2 kB / 299.8 MB, free: 9.793 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04036/0.04036, allocations: 8.941 MB / 363.6 MB, free: 10.13 MB / 302.1 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.002407/0.002407, allocations: 87.36 kB / 486 MB, free: 11.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1119, allocations: 54.42 MB / 0.5278 GB, free: 1.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.003517/0.1154, allocations: 2.042 MB / 0.5298 GB, free: 15.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00166/0.1171, allocations: 0.9867 MB / 0.5307 GB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001013/0.1172, allocations: 8 kB / 0.5308 GB, free: 14.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003542/0.1175, allocations: 119.5 kB / 0.5309 GB, free: 14.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000324/0.1179, allocations: 111.5 kB / 0.531 GB, free: 14.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003443/0.1182, allocations: 131.6 kB / 0.5311 GB, free: 13.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002875/0.1185, allocations: 219.2 kB / 0.5313 GB, free: 13.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001166/0.1186, allocations: 33.19 kB / 0.5313 GB, free: 13.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001457/0.1188, allocations: 99.61 kB / 0.5314 GB, free: 13.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001742/0.1189, allocations: 119.6 kB / 0.5316 GB, free: 13.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.903e-05/0.119, allocations: 16 kB / 0.5316 GB, free: 13.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001176/0.1191, allocations: 51.97 kB / 0.5316 GB, free: 13.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.674e-05/0.1192, allocations: 47.78 kB / 0.5317 GB, free: 13.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.655e-05/0.1193, allocations: 83.48 kB / 0.5317 GB, free: 13.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003277/0.1196, allocations: 227 kB / 0.532 GB, free: 13.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.1196, allocations: 0 / 0.532 GB, free: 13.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1196, allocations: 3.938 kB / 0.532 GB, free: 13.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.012e-05/0.1196, allocations: 0 / 0.532 GB, free: 13.03 MB / 350.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.0007701/0.1204, allocations: 0.514 MB / 0.5325 GB, free: 12.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.1204, allocations: 8.031 kB / 0.5325 GB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.046e-05/0.1205, allocations: 46.73 kB / 0.5325 GB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.305e-05/0.1205, allocations: 24.8 kB / 0.5325 GB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003299/0.1208, allocations: 252.1 kB / 0.5328 GB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.1209, allocations: 8.609 kB / 0.5328 GB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.427e-05/0.1209, allocations: 15.94 kB / 0.5328 GB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002761/0.1212, allocations: 137.5 kB / 0.5329 GB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.563e-05/0.1212, allocations: 7.984 kB / 0.5329 GB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.479e-05/0.1212, allocations: 4 kB / 0.5329 GB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.1212, allocations: 4 kB / 0.5329 GB, free: 11.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001612/0.1214, allocations: 68.61 kB / 0.533 GB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008522/0.1222, allocations: 0.6187 MB / 0.5336 GB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000245/0.1225, allocations: 98.61 kB / 0.5337 GB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.849e-05/0.1225, allocations: 28.84 kB / 0.5337 GB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.202e-05/0.1226, allocations: 4 kB / 0.5337 GB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001899/0.1227, allocations: 87.25 kB / 0.5338 GB, free: 10.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.1227, allocations: 0 / 0.5338 GB, free: 10.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003692/0.1231, allocations: 149.5 kB / 0.534 GB, free: 10.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.205e-05/0.1232, allocations: 55.39 kB / 0.534 GB, free: 10.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002687/0.1234, allocations: 272 kB / 0.5343 GB, free: 10.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.376e-05/0.1235, allocations: 29.7 kB / 0.5343 GB, free: 10.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.1236, allocations: 144.2 kB / 0.5344 GB, free: 10.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.181e-05/0.1236, allocations: 27.8 kB / 0.5345 GB, free: 10.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.197e-05/0.1237, allocations: 37.66 kB / 0.5345 GB, free: 10.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.1238, allocations: 338.8 kB / 0.5348 GB, free: 9.824 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.176e-05/0.1239, allocations: 27.98 kB / 0.5349 GB, free: 9.797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.94e-05/0.124, allocations: 68.27 kB / 0.5349 GB, free: 9.715 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001824/0.1242, allocations: 104.2 kB / 0.535 GB, free: 9.598 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1242, allocations: 0 / 0.535 GB, free: 9.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002726/0.1245, allocations: 153.3 kB / 0.5352 GB, free: 9.441 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/0.1245, allocations: 4 kB / 0.5352 GB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.1245, allocations: 4 kB / 0.5352 GB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.1245, allocations: 7.984 kB / 0.5352 GB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001444/0.1246, allocations: 27.92 kB / 0.5352 GB, free: 9.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.1246, allocations: 8.125 kB / 0.5352 GB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.192e-05/0.1247, allocations: 15.94 kB / 0.5352 GB, free: 9.375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.078e-05/0.1247, allocations: 4 kB / 0.5352 GB, free: 9.371 MB / 350.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.0001339/0.1249, allocations: 145.7 kB / 0.5354 GB, free: 9.219 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.589e-05/0.1249, allocations: 15.91 kB / 0.5354 GB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.343e-05/0.1249, allocations: 17.41 kB / 0.5354 GB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.125, allocations: 4 kB / 0.5354 GB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.904e-06/0.125, allocations: 3.984 kB / 0.5354 GB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.125, allocations: 3.938 kB / 0.5354 GB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002362/0.1252, allocations: 249.5 kB / 0.5357 GB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1252, allocations: 384 / 0.5357 GB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001086/0.1253, allocations: 15.98 kB / 0.5357 GB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.1253, allocations: 4 kB / 0.5357 GB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.1253, allocations: 0 / 0.5357 GB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1253, allocations: 7.875 kB / 0.5357 GB, free: 8.844 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.1253, allocations: 0 / 0.5357 GB, free: 8.844 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003622/0.1257, allocations: 192.8 kB / 0.5359 GB, free: 8.637 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.823e-05/0.1258, allocations: 97.11 kB / 0.536 GB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.766e-05/0.1258, allocations: 3.984 kB / 0.536 GB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.154e-05/0.1258, allocations: 4 kB / 0.536 GB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.275e-05/0.1259, allocations: 7.984 kB / 0.536 GB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.625e-05/0.1259, allocations: 4 kB / 0.536 GB, free: 8.504 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001815/0.1261, allocations: 205.6 kB / 0.5362 GB, free: 8.305 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1261, allocations: 0 / 0.5362 GB, free: 8.305 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002566/0.1263, allocations: 43.88 kB / 0.5362 GB, free: 8.262 MB / 350.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.00198/0.1283, allocations: 1.038 MB / 0.5372 GB, free: 7.371 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002419/0.1286, allocations: 83.84 kB / 0.5373 GB, free: 7.289 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1286, allocations: 0 / 0.5373 GB, free: 7.289 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.296e-05/0.1287, allocations: 36.17 kB / 0.5373 GB, free: 7.254 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003085/0.129, allocations: 46.59 kB / 0.5374 GB, free: 7.211 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002549/0.1315, allocations: 2.088 MB / 0.5394 GB, free: 5.016 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003724/0.1319, allocations: 0.7513 MB / 0.5402 GB, free: 4.238 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.76e-05/0.132, allocations: 17.41 kB / 0.5402 GB, free: 4.223 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.235e-05/0.1321, allocations: 59.42 kB / 0.5402 GB, free: 4.164 MB / 350.1 MB Notification: Performance of SimCode: time 4.8e-07/0.1321, allocations: 0 / 0.5402 GB, free: 4.164 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02847/0.1605, allocations: 4.373 MB / 0.5445 GB, free: 15.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.968/8.128, allocations: 11.39 kB / 0.5445 GB, free: 15.84 MB / 366.1 MB " [Timeout remaining time 652] (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: 11.057905634865165] Failed to read output from testmodel.py, exit status != 0: 8.43969898717478 8.268737681 8.146072369 Calling exit ...