Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.TestDCPMMachine.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.00152/0.00152, allocations: 104.4 kB / 16.45 MB, free: 6.445 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.417/1.417, allocations: 225.6 MB / 244.8 MB, free: 14.16 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.001475/0.001475, allocations: 198.7 kB / 299.8 MB, free: 9.832 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.04127/0.04127, allocations: 8.936 MB / 363.6 MB, free: 10.18 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.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00236/0.00236, allocations: 82.58 kB / 486 MB, free: 11.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09799/0.1004, allocations: 54.42 MB / 0.5278 GB, free: 1.27 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.0044/0.1048, allocations: 2.872 MB / 0.5306 GB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.1059, allocations: 0.666 MB / 0.5312 GB, free: 13.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000147/0.106, allocations: 4 kB / 0.5312 GB, free: 13.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001822/0.1062, allocations: 51.52 kB / 0.5313 GB, free: 13.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002574/0.1065, allocations: 99.17 kB / 0.5314 GB, free: 13.55 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001686/0.1066, allocations: 83.84 kB / 0.5315 GB, free: 13.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004137/0.107, allocations: 378.4 kB / 0.5318 GB, free: 13.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002241/0.1073, allocations: 100 kB / 0.5319 GB, free: 13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001799/0.1074, allocations: 143.5 kB / 0.5321 GB, free: 12.86 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002855/0.1077, allocations: 151.3 kB / 0.5322 GB, free: 12.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.651e-05/0.1078, allocations: 36 kB / 0.5322 GB, free: 12.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.413e-05/0.1079, allocations: 36 kB / 0.5323 GB, free: 12.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001052/0.108, allocations: 71.77 kB / 0.5323 GB, free: 12.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002545/0.1083, allocations: 179.1 kB / 0.5325 GB, free: 12.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007185/0.109, allocations: 411.1 kB / 0.5329 GB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.109, allocations: 4 kB / 0.5329 GB, free: 11.99 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.109, allocations: 0 / 0.5329 GB, free: 11.99 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.015e-06/0.109, allocations: 0 / 0.5329 GB, free: 11.99 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001427/0.1104, allocations: 0.6001 MB / 0.5335 GB, free: 11.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.42e-05/0.1105, allocations: 8.031 kB / 0.5335 GB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001152/0.1106, allocations: 70.72 kB / 0.5336 GB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001021/0.1107, allocations: 40.69 kB / 0.5336 GB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005732/0.1113, allocations: 267.8 kB / 0.5339 GB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.543e-05/0.1113, allocations: 25.03 kB / 0.5339 GB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.229e-05/0.1114, allocations: 32.36 kB / 0.5339 GB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000826/0.1122, allocations: 270 kB / 0.5342 GB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.593e-05/0.1122, allocations: 4 kB / 0.5342 GB, free: 10.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.249e-05/0.1123, allocations: 11.98 kB / 0.5342 GB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.473e-05/0.1123, allocations: 8 kB / 0.5342 GB, free: 10.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006179/0.1129, allocations: 218.4 kB / 0.5344 GB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00224/0.1152, allocations: 1.037 MB / 0.5354 GB, free: 9.238 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004091/0.1156, allocations: 138.5 kB / 0.5356 GB, free: 9.094 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000284/0.1158, allocations: 76.77 kB / 0.5356 GB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.96e-05/0.1159, allocations: 0 / 0.5356 GB, free: 9.016 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.21e-05/0.1159, allocations: 30.56 kB / 0.5357 GB, free: 8.977 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.1159, allocations: 4 kB / 0.5357 GB, free: 8.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001936/0.1178, allocations: 0.69 MB / 0.5363 GB, free: 8.211 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.782e-05/0.1179, allocations: 55.41 kB / 0.5364 GB, free: 8.145 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002926/0.1182, allocations: 199.1 kB / 0.5366 GB, free: 7.941 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.974e-05/0.1182, allocations: 29.7 kB / 0.5366 GB, free: 7.906 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001828/0.1184, allocations: 188.4 kB / 0.5368 GB, free: 7.719 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.078e-05/0.1185, allocations: 59.55 kB / 0.5368 GB, free: 7.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.126e-05/0.1185, allocations: 37.7 kB / 0.5369 GB, free: 7.617 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000201/0.1188, allocations: 334.7 kB / 0.5372 GB, free: 7.281 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002468/0.119, allocations: 55.97 kB / 0.5372 GB, free: 7.227 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002889/0.1193, allocations: 105.9 kB / 0.5373 GB, free: 7.109 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005216/0.1198, allocations: 176 kB / 0.5375 GB, free: 6.922 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.1198, allocations: 0 / 0.5375 GB, free: 6.922 MB / 350.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0008058/0.1206, allocations: 232.8 kB / 0.5377 GB, free: 6.688 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.1206, allocations: 7.984 kB / 0.5377 GB, free: 6.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.386e-06/0.1206, allocations: 4 kB / 0.5377 GB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000173/0.1208, allocations: 20.92 kB / 0.5378 GB, free: 6.652 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002953/0.1211, allocations: 47.97 kB / 0.5378 GB, free: 6.605 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001527/0.1226, allocations: 1.375 MB / 0.5392 GB, free: 5.094 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000166/0.1228, allocations: 8.031 kB / 0.5392 GB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.244e-05/0.1228, allocations: 8 kB / 0.5392 GB, free: 5.078 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002198/0.123, allocations: 137.8 kB / 0.5393 GB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.439e-05/0.1231, allocations: 27.94 kB / 0.5393 GB, free: 4.906 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.341e-05/0.1232, allocations: 21.86 kB / 0.5394 GB, free: 4.883 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.1232, allocations: 4 kB / 0.5394 GB, free: 4.879 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.1232, allocations: 3.938 kB / 0.5394 GB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.1232, allocations: 0 / 0.5394 GB, free: 4.875 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001444/0.1246, allocations: 0.614 MB / 0.54 GB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.1246, allocations: 0 / 0.54 GB, free: 4.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003224/0.125, allocations: 39.91 kB / 0.54 GB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001115/0.1251, allocations: 20.84 kB / 0.54 GB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.873e-05/0.1251, allocations: 4 kB / 0.54 GB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001459/0.1266, allocations: 1.367 MB / 0.5414 GB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.1266, allocations: 4.031 kB / 0.5414 GB, free: 2.621 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008898/0.1275, allocations: 377.8 kB / 0.5417 GB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/0.1276, allocations: 93.02 kB / 0.5418 GB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.844e-05/0.1276, allocations: 4 kB / 0.5418 GB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002484/0.1278, allocations: 16.03 kB / 0.5418 GB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.7e-05/0.1279, allocations: 11.98 kB / 0.5418 GB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.9e-05/0.1279, allocations: 4.094 kB / 0.5418 GB, free: 2.082 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002271/0.1282, allocations: 152.2 kB / 0.542 GB, free: 1.934 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1282, allocations: 0 / 0.542 GB, free: 1.934 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005878/0.1287, allocations: 52 kB / 0.542 GB, free: 1.883 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (machine.inductor.i,machine.inertia.w,load.phi) * 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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001407/0.1302, allocations: 0.9099 MB / 0.5429 GB, free: 0.9336 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007265/0.1309, allocations: 273.1 kB / 0.5432 GB, free: 0.6562 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.1309, allocations: 0 / 0.5432 GB, free: 0.6562 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004578/0.1313, allocations: 190.6 kB / 0.5434 GB, free: 468 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006197/0.132, allocations: 32.3 kB / 0.5434 GB, free: 436 kB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005192/0.1371, allocations: 2.568 MB / 0.5459 GB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005142/0.1377, allocations: 0.7554 MB / 0.5466 GB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000141/0.1378, allocations: 21.53 kB / 0.5467 GB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001791/0.138, allocations: 83.34 kB / 0.5467 GB, free: 12.84 MB / 366.1 MB Notification: Performance of SimCode: time 8.61e-07/0.138, allocations: 0 / 0.5467 GB, free: 12.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03499/0.173, allocations: 4.721 MB / 0.5514 GB, free: 8.242 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.29/10.46, allocations: 8.062 kB / 0.5514 GB, free: 8.234 MB / 366.1 MB " [Timeout remaining time 649] (rm -f HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe >> ../files/HanserModelica_HanserModelica.Rotational.TestDCPMMachine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Rotational_TestDCPMMachine_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Rotational_TestDCPMMachine.fmu > HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.192317052278668] Failed to read output from testmodel.py, exit status != 0: 10.703148785047233 10.572338679 10.459016223999999 Calling exit ...