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.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.001365/0.001365, allocations: 116.8 kB / 17.17 MB, free: 6 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.547/1.547, allocations: 230.6 MB / 250.5 MB, free: 9.215 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.001754/0.001754, allocations: 220.1 kB / 306.7 MB, free: 4.309 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.04108/0.04108, allocations: 8.905 MB / 371.7 MB, free: 3.453 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.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",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.002498/0.002498, allocations: 84.22 kB / 496.4 MB, free: 4.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1158, allocations: 55.6 MB / 0.5391 GB, free: 6.477 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.004468/0.1202, allocations: 2.884 MB / 0.5419 GB, free: 3.574 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001524/0.1218, allocations: 0.6934 MB / 0.5426 GB, free: 2.875 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000223/0.122, allocations: 11.94 kB / 0.5426 GB, free: 2.863 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002156/0.1222, allocations: 51.5 kB / 0.5426 GB, free: 2.812 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003124/0.1225, allocations: 95.19 kB / 0.5427 GB, free: 2.719 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002217/0.1227, allocations: 83.91 kB / 0.5428 GB, free: 2.637 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004724/0.1232, allocations: 374.4 kB / 0.5431 GB, free: 2.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002685/0.1235, allocations: 104.7 kB / 0.5432 GB, free: 2.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002167/0.1237, allocations: 147.5 kB / 0.5434 GB, free: 2.016 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002204/0.1239, allocations: 159.3 kB / 0.5435 GB, free: 1.859 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.639e-05/0.124, allocations: 40 kB / 0.5436 GB, free: 1.82 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.568e-05/0.124, allocations: 36 kB / 0.5436 GB, free: 1.785 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.183e-05/0.1241, allocations: 71.77 kB / 0.5437 GB, free: 1.715 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001767/0.1243, allocations: 175.2 kB / 0.5438 GB, free: 1.543 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005304/0.1248, allocations: 414.4 kB / 0.5442 GB, free: 1.137 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.653e-06/0.1248, allocations: 0 / 0.5442 GB, free: 1.137 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.1248, allocations: 0 / 0.5442 GB, free: 1.137 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.614e-05/0.1248, allocations: 0 / 0.5442 GB, free: 1.137 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.001084/0.1259, allocations: 0.6002 MB / 0.5448 GB, free: 496 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/0.126, allocations: 8.031 kB / 0.5448 GB, free: 488 kB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.095e-05/0.126, allocations: 8.844 kB / 0.5448 GB, free: 480 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.938e-05/0.1261, allocations: 74.72 kB / 0.5449 GB, free: 396 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.442e-05/0.1262, allocations: 32.75 kB / 0.5449 GB, free: 364 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004789/0.1267, allocations: 271.8 kB / 0.5452 GB, free: 52 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.006e-05/0.1267, allocations: 21.03 kB / 0.5452 GB, free: 32 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.163e-05/0.1268, allocations: 40.17 kB / 0.5453 GB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005906/0.1274, allocations: 262 kB / 0.5455 GB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.057e-05/0.1274, allocations: 7.953 kB / 0.5455 GB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.705e-05/0.1274, allocations: 15.98 kB / 0.5455 GB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.975e-05/0.1275, allocations: 8 kB / 0.5455 GB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005131/0.128, allocations: 210.4 kB / 0.5457 GB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001795/0.1298, allocations: 1.029 MB / 0.5468 GB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004539/0.1302, allocations: 154.5 kB / 0.5469 GB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001959/0.1304, allocations: 68.81 kB / 0.547 GB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.734e-05/0.1304, allocations: 4 kB / 0.547 GB, free: 14.15 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.033e-05/0.1305, allocations: 38.5 kB / 0.547 GB, free: 14.11 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.343e-06/0.1305, allocations: 0 / 0.547 GB, free: 14.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=16): time 0.001665/0.1321, allocations: 0.6862 MB / 0.5477 GB, free: 13.35 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.171e-05/0.1322, allocations: 51.41 kB / 0.5477 GB, free: 13.29 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002767/0.1325, allocations: 199.4 kB / 0.5479 GB, free: 13.08 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.718e-05/0.1325, allocations: 29.7 kB / 0.5479 GB, free: 13.05 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000157/0.1327, allocations: 188.4 kB / 0.5481 GB, free: 12.86 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.106e-05/0.1327, allocations: 59.55 kB / 0.5482 GB, free: 12.8 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.413e-05/0.1328, allocations: 37.7 kB / 0.5482 GB, free: 12.76 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001873/0.133, allocations: 330.8 kB / 0.5485 GB, free: 12.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/0.1332, allocations: 63.95 kB / 0.5486 GB, free: 12.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001984/0.1333, allocations: 92.27 kB / 0.5487 GB, free: 12.26 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003739/0.1337, allocations: 174.7 kB / 0.5488 GB, free: 12.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.1337, allocations: 4 kB / 0.5489 GB, free: 12.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005141/0.1342, allocations: 234.2 kB / 0.5491 GB, free: 11.83 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.1343, allocations: 4 kB / 0.5491 GB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.963e-06/0.1343, allocations: 0 / 0.5491 GB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000168/0.1344, allocations: 24.8 kB / 0.5491 GB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000203/0.1346, allocations: 43.91 kB / 0.5491 GB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001395/0.136, allocations: 1.379 MB / 0.5505 GB, free: 10.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001353/0.1362, allocations: 8.031 kB / 0.5505 GB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.93e-05/0.1362, allocations: 12 kB / 0.5505 GB, free: 10.22 MB / 366.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.000194/0.1364, allocations: 145.8 kB / 0.5506 GB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.414e-05/0.1364, allocations: 23.8 kB / 0.5507 GB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.164e-05/0.1365, allocations: 21.88 kB / 0.5507 GB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.1365, allocations: 4 kB / 0.5507 GB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/0.1365, allocations: 64 / 0.5507 GB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.1365, allocations: 4 kB / 0.5507 GB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001011/0.1375, allocations: 0.5984 MB / 0.5513 GB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/0.1375, allocations: 7.984 kB / 0.5513 GB, free: 9.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002053/0.1377, allocations: 39.92 kB / 0.5513 GB, free: 9.301 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.808e-05/0.1378, allocations: 20.91 kB / 0.5513 GB, free: 9.277 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.808e-05/0.1378, allocations: 8 kB / 0.5514 GB, free: 9.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001202/0.139, allocations: 1.368 MB / 0.5527 GB, free: 7.766 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.139, allocations: 3.984 kB / 0.5527 GB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006445/0.1397, allocations: 373.8 kB / 0.5531 GB, free: 7.371 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.78e-05/0.1397, allocations: 96.95 kB / 0.5531 GB, free: 7.258 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.462e-05/0.1398, allocations: 4 kB / 0.5531 GB, free: 7.254 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000157/0.1399, allocations: 16.03 kB / 0.5532 GB, free: 7.238 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.519e-05/0.14, allocations: 11.98 kB / 0.5532 GB, free: 7.227 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.133e-05/0.14, allocations: 4 kB / 0.5532 GB, free: 7.223 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001418/0.1401, allocations: 152.2 kB / 0.5533 GB, free: 7.074 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1401, allocations: 0 / 0.5533 GB, free: 7.074 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000339/0.1405, allocations: 55.94 kB / 0.5534 GB, free: 7.02 MB / 366.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.0009711/0.1414, allocations: 0.9062 MB / 0.5543 GB, free: 6.074 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006044/0.1421, allocations: 274 kB / 0.5545 GB, free: 5.797 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1421, allocations: 4.062 kB / 0.5545 GB, free: 5.793 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002977/0.1424, allocations: 186.6 kB / 0.5547 GB, free: 5.598 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004075/0.1428, allocations: 50.42 kB / 0.5548 GB, free: 5.555 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003545/0.1463, allocations: 2.553 MB / 0.5572 GB, free: 2.883 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004128/0.1467, allocations: 0.7554 MB / 0.558 GB, free: 2.102 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.76e-05/0.1468, allocations: 17.55 kB / 0.558 GB, free: 2.086 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001253/0.1469, allocations: 83.41 kB / 0.5581 GB, free: 2.004 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.1469, allocations: 0 / 0.5581 GB, free: 2.004 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02813/0.1751, allocations: 4.77 MB / 0.5627 GB, free: 13.37 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/11.89, allocations: 13.33 kB / 0.5628 GB, free: 13.36 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.965295567002613] Failed to read output from testmodel.py, exit status != 0: 12.027910824981518 12.046994433 11.918657156 Calling exit ...