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.00133/0.00133, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.453/1.453, allocations: 230.6 MB / 253.5 MB, free: 14.27 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.001591/0.001591, allocations: 204.5 kB / 310 MB, free: 3.074 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.04219/0.04219, allocations: 8.928 MB / 375.4 MB, free: 6.551 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.002471/0.002471, allocations: 83.88 kB / 0.4899 GB, free: 44.75 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08816/0.09063, allocations: 55.61 MB / 0.5442 GB, free: 5.051 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.004464/0.0951, allocations: 2.71 MB / 0.5468 GB, free: 2.324 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001212/0.09631, allocations: 0.6506 MB / 0.5475 GB, free: 1.668 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001501/0.09646, allocations: 7.938 kB / 0.5475 GB, free: 1.66 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001733/0.09663, allocations: 51.5 kB / 0.5475 GB, free: 1.609 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002497/0.09688, allocations: 99.17 kB / 0.5476 GB, free: 1.512 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001626/0.09705, allocations: 83.84 kB / 0.5477 GB, free: 1.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000393/0.09744, allocations: 382.4 kB / 0.5481 GB, free: 1.055 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002166/0.09766, allocations: 109 kB / 0.5482 GB, free: 0.9453 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001801/0.09784, allocations: 147.5 kB / 0.5483 GB, free: 0.8008 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002039/0.09804, allocations: 159.2 kB / 0.5485 GB, free: 0.6445 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.327e-05/0.09809, allocations: 36 kB / 0.5485 GB, free: 0.6094 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.637e-05/0.09815, allocations: 36 kB / 0.5485 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.728e-05/0.09823, allocations: 75.77 kB / 0.5486 GB, free: 0.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001391/0.09837, allocations: 135.5 kB / 0.5487 GB, free: 376 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004603/0.09883, allocations: 418.3 kB / 0.5491 GB, free: 15.96 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.09883, allocations: 0 / 0.5491 GB, free: 15.96 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.09883, allocations: 0 / 0.5491 GB, free: 15.96 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.09884, allocations: 0 / 0.5491 GB, free: 15.96 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0009461/0.09979, allocations: 0.5248 MB / 0.5496 GB, free: 15.4 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.09983, allocations: 12.03 kB / 0.5496 GB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.806e-05/0.09985, allocations: 8.844 kB / 0.5497 GB, free: 15.38 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.898e-05/0.09991, allocations: 66.72 kB / 0.5497 GB, free: 15.31 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.314e-05/0.09998, allocations: 32.75 kB / 0.5498 GB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003676/0.1003, allocations: 214 kB / 0.55 GB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.918e-05/0.1004, allocations: 32.97 kB / 0.55 GB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.838e-05/0.1004, allocations: 36.12 kB / 0.55 GB, free: 14.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005783/0.101, allocations: 295.8 kB / 0.5503 GB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.993e-05/0.101, allocations: 7.938 kB / 0.5503 GB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.988e-05/0.1011, allocations: 12 kB / 0.5503 GB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.1011, allocations: 4 kB / 0.5503 GB, free: 14.65 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004666/0.1015, allocations: 214.5 kB / 0.5505 GB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001579/0.1031, allocations: 0.895 MB / 0.5514 GB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003808/0.1035, allocations: 142.5 kB / 0.5515 GB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001724/0.1037, allocations: 72.83 kB / 0.5516 GB, free: 13.26 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.516e-05/0.1037, allocations: 0 / 0.5516 GB, free: 13.26 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.888e-05/0.1037, allocations: 42.55 kB / 0.5517 GB, free: 13.21 MB / 382.1 MB Notification: Performance of pre-optimization done (n=15): time 1.102e-06/0.1037, allocations: 0 / 0.5517 GB, free: 13.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=16): time 0.001389/0.1051, allocations: 0.5386 MB / 0.5522 GB, free: 12.64 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.642e-05/0.1051, allocations: 51.41 kB / 0.5522 GB, free: 12.57 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002072/0.1053, allocations: 199.2 kB / 0.5524 GB, free: 12.37 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.437e-05/0.1054, allocations: 29.7 kB / 0.5524 GB, free: 12.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001336/0.1055, allocations: 192.4 kB / 0.5526 GB, free: 12.14 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.148e-05/0.1056, allocations: 59.48 kB / 0.5527 GB, free: 12.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.747e-05/0.1056, allocations: 37.7 kB / 0.5527 GB, free: 12.04 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.1058, allocations: 334.7 kB / 0.553 GB, free: 11.71 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001689/0.106, allocations: 63.95 kB / 0.5531 GB, free: 11.64 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001879/0.1062, allocations: 96.12 kB / 0.5532 GB, free: 11.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003516/0.1065, allocations: 165.1 kB / 0.5534 GB, free: 11.36 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-06/0.1065, allocations: 0 / 0.5534 GB, free: 11.36 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005078/0.107, allocations: 240.6 kB / 0.5536 GB, free: 11.12 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.107, allocations: 8.125 kB / 0.5536 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.107, allocations: 4 kB / 0.5536 GB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001407/0.1072, allocations: 20.86 kB / 0.5536 GB, free: 11.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001997/0.1074, allocations: 43.91 kB / 0.5537 GB, free: 11.04 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001179/0.1086, allocations: 1.263 MB / 0.5549 GB, free: 9.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000134/0.1087, allocations: 16.14 kB / 0.5549 GB, free: 9.645 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.849e-05/0.1087, allocations: 8 kB / 0.5549 GB, free: 9.637 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: 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.0002169/0.1089, allocations: 141.8 kB / 0.555 GB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.057e-05/0.109, allocations: 27.73 kB / 0.5551 GB, free: 9.461 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.916e-05/0.109, allocations: 25.8 kB / 0.5551 GB, free: 9.438 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.109, allocations: 0 / 0.5551 GB, free: 9.438 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.109, allocations: 0 / 0.5551 GB, free: 9.438 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.109, allocations: 4 kB / 0.5551 GB, free: 9.434 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009589/0.11, allocations: 0.5546 MB / 0.5556 GB, free: 8.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.11, allocations: 4 kB / 0.5556 GB, free: 8.816 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002055/0.1102, allocations: 39.91 kB / 0.5557 GB, free: 8.777 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.281e-05/0.1103, allocations: 20.84 kB / 0.5557 GB, free: 8.754 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.604e-05/0.1103, allocations: 4 kB / 0.5557 GB, free: 8.75 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001035/0.1113, allocations: 1.267 MB / 0.5569 GB, free: 7.367 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.1114, allocations: 0 / 0.5569 GB, free: 7.367 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006371/0.112, allocations: 367.2 kB / 0.5573 GB, free: 6.984 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.785e-05/0.112, allocations: 27.89 kB / 0.5573 GB, free: 6.957 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.978e-05/0.1121, allocations: 4 kB / 0.5573 GB, free: 6.953 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000158/0.1122, allocations: 12.12 kB / 0.5573 GB, free: 6.941 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.895e-05/0.1123, allocations: 15.97 kB / 0.5574 GB, free: 6.926 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.212e-05/0.1123, allocations: 4 kB / 0.5574 GB, free: 6.922 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001407/0.1124, allocations: 148.2 kB / 0.5575 GB, free: 6.777 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1124, allocations: 0 / 0.5575 GB, free: 6.777 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003393/0.1128, allocations: 59.94 kB / 0.5576 GB, free: 6.719 MB / 382.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.001012/0.1138, allocations: 0.9006 MB / 0.5584 GB, free: 5.781 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005972/0.1144, allocations: 262.5 kB / 0.5587 GB, free: 5.508 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.1144, allocations: 0 / 0.5587 GB, free: 5.508 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003172/0.1147, allocations: 191 kB / 0.5589 GB, free: 5.309 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003975/0.1151, allocations: 51.97 kB / 0.5589 GB, free: 5.258 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0035/0.1186, allocations: 2.559 MB / 0.5614 GB, free: 2.582 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001574/0.1187, allocations: 150.5 kB / 0.5616 GB, free: 2.418 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.61e-05/0.1188, allocations: 21.62 kB / 0.5616 GB, free: 2.398 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001314/0.119, allocations: 79.41 kB / 0.5617 GB, free: 2.32 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.119, allocations: 0 / 0.5617 GB, free: 2.32 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1994/0.3184, allocations: 5.06 MB / 0.5666 GB, free: 26.11 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/11.96, allocations: 12.97 kB / 0.5666 GB, free: 26.11 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.7042604140006] Failed to read output from testmodel.py, exit status != 0: 12.116074817953631 12.129224518 12.027849746 Calling exit ...