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.001876/0.001876, allocations: 110.4 kB / 18.94 MB, free: 2.793 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.441/1.441, allocations: 230.6 MB / 252.6 MB, free: 8.289 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.002157/0.002157, allocations: 206.3 kB / 309.2 MB, free: 3.133 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.04356/0.04356, allocations: 8.925 MB / 374.6 MB, free: 1.879 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="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: 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.002528/0.002528, allocations: 95.45 kB / 0.4892 GB, free: 4.566 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1027, allocations: 55.61 MB / 0.5435 GB, free: 5.059 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.005111/0.1078, allocations: 2.918 MB / 0.5463 GB, free: 2.121 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001656/0.1095, allocations: 0.7011 MB / 0.547 GB, free: 1.414 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002319/0.1097, allocations: 7.938 kB / 0.547 GB, free: 1.406 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002345/0.1099, allocations: 55.5 kB / 0.5471 GB, free: 1.352 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004657/0.1104, allocations: 95.19 kB / 0.5472 GB, free: 1.258 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002185/0.1106, allocations: 83.84 kB / 0.5473 GB, free: 1.176 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005233/0.1111, allocations: 374.4 kB / 0.5476 GB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002443/0.1114, allocations: 109.3 kB / 0.5477 GB, free: 0.6992 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001825/0.1116, allocations: 143.5 kB / 0.5479 GB, free: 0.5586 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002082/0.1118, allocations: 159.2 kB / 0.548 GB, free: 412 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.015e-05/0.1118, allocations: 36 kB / 0.548 GB, free: 376 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.449e-05/0.1119, allocations: 36 kB / 0.5481 GB, free: 340 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.751e-05/0.112, allocations: 67.78 kB / 0.5481 GB, free: 272 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001593/0.1121, allocations: 171.2 kB / 0.5483 GB, free: 100 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004928/0.1126, allocations: 426.4 kB / 0.5487 GB, free: 15.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1126, allocations: 0 / 0.5487 GB, free: 15.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1126, allocations: 4 kB / 0.5487 GB, free: 15.67 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.161e-05/0.1126, allocations: 0 / 0.5487 GB, free: 15.67 MB / 366.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.0009091/0.1135, allocations: 0.5171 MB / 0.5492 GB, free: 15.12 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.1136, allocations: 11.98 kB / 0.5492 GB, free: 15.11 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.482e-05/0.1137, allocations: 66.73 kB / 0.5493 GB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.208e-05/0.1137, allocations: 36.69 kB / 0.5493 GB, free: 15 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004215/0.1141, allocations: 218 kB / 0.5495 GB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.924e-05/0.1142, allocations: 25.02 kB / 0.5496 GB, free: 14.74 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.565e-05/0.1142, allocations: 32.38 kB / 0.5496 GB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005388/0.1148, allocations: 266 kB / 0.5498 GB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.097e-05/0.1148, allocations: 3.953 kB / 0.5498 GB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.73e-05/0.1148, allocations: 16 kB / 0.5499 GB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.782e-05/0.1149, allocations: 12 kB / 0.5499 GB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004729/0.1153, allocations: 210.4 kB / 0.5501 GB, free: 14.21 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001635/0.117, allocations: 0.9613 MB / 0.551 GB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000379/0.1174, allocations: 149.7 kB / 0.5512 GB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001763/0.1175, allocations: 72.59 kB / 0.5512 GB, free: 12.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.399e-05/0.1176, allocations: 7.984 kB / 0.5512 GB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.207e-05/0.1176, allocations: 38.56 kB / 0.5513 GB, free: 12.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.713e-06/0.1176, allocations: 0 / 0.5513 GB, free: 12.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=16): time 0.001376/0.119, allocations: 0.5326 MB / 0.5518 GB, free: 12.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.568e-05/0.119, allocations: 59.41 kB / 0.5518 GB, free: 12.27 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002023/0.1192, allocations: 195.2 kB / 0.552 GB, free: 12.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.824e-05/0.1192, allocations: 29.7 kB / 0.5521 GB, free: 12.03 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001264/0.1194, allocations: 188.4 kB / 0.5522 GB, free: 11.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.658e-05/0.1194, allocations: 63.47 kB / 0.5523 GB, free: 11.78 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.031e-05/0.1195, allocations: 37.7 kB / 0.5523 GB, free: 11.74 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.1196, allocations: 330.8 kB / 0.5527 GB, free: 11.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001687/0.1198, allocations: 67.95 kB / 0.5527 GB, free: 11.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001918/0.12, allocations: 97.89 kB / 0.5528 GB, free: 11.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003449/0.1203, allocations: 174.9 kB / 0.553 GB, free: 11.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.1203, allocations: 0 / 0.553 GB, free: 11.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004914/0.1208, allocations: 230.2 kB / 0.5532 GB, free: 10.81 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.1209, allocations: 4 kB / 0.5532 GB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.715e-06/0.1209, allocations: 8.125 kB / 0.5532 GB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001472/0.121, allocations: 16.86 kB / 0.5532 GB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002053/0.1212, allocations: 51.91 kB / 0.5533 GB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00115/0.1224, allocations: 1.263 MB / 0.5545 GB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001362/0.1225, allocations: 12.03 kB / 0.5545 GB, free: 9.336 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.718e-05/0.1225, allocations: 8 kB / 0.5545 GB, free: 9.328 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.1227, allocations: 145.9 kB / 0.5547 GB, free: 9.176 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.396e-05/0.1228, allocations: 27.8 kB / 0.5547 GB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.457e-05/0.1228, allocations: 21.81 kB / 0.5547 GB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.1228, allocations: 0 / 0.5547 GB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.1228, allocations: 3.938 kB / 0.5547 GB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.1228, allocations: 0 / 0.5547 GB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009373/0.1238, allocations: 0.584 MB / 0.5553 GB, free: 8.484 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.1238, allocations: 0 / 0.5553 GB, free: 8.484 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002067/0.124, allocations: 39.91 kB / 0.5553 GB, free: 8.445 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.766e-05/0.124, allocations: 20.84 kB / 0.5553 GB, free: 8.422 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/0.1241, allocations: 4 kB / 0.5554 GB, free: 8.418 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00101/0.1251, allocations: 1.279 MB / 0.5566 GB, free: 7.023 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1251, allocations: 0 / 0.5566 GB, free: 7.023 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006338/0.1257, allocations: 381.3 kB / 0.557 GB, free: 6.629 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.632e-05/0.1257, allocations: 15.86 kB / 0.557 GB, free: 6.613 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.805e-05/0.1258, allocations: 8 kB / 0.557 GB, free: 6.605 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001576/0.1259, allocations: 11.98 kB / 0.557 GB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.976e-05/0.126, allocations: 11.98 kB / 0.557 GB, free: 6.582 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.997e-06/0.126, allocations: 4 kB / 0.557 GB, free: 6.578 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000132/0.1261, allocations: 148.2 kB / 0.5572 GB, free: 6.434 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1261, allocations: 0 / 0.5572 GB, free: 6.434 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003636/0.1265, allocations: 60 kB / 0.5572 GB, free: 6.375 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.0009835/0.1275, allocations: 0.8943 MB / 0.5581 GB, free: 5.441 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005922/0.1281, allocations: 274.5 kB / 0.5583 GB, free: 5.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1281, allocations: 0 / 0.5583 GB, free: 5.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003089/0.1284, allocations: 186.6 kB / 0.5585 GB, free: 4.965 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003984/0.1288, allocations: 42.94 kB / 0.5586 GB, free: 4.926 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003554/0.1323, allocations: 2.565 MB / 0.5611 GB, free: 2.242 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003811/0.1327, allocations: 0.7554 MB / 0.5618 GB, free: 1.461 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.652e-05/0.1328, allocations: 21.62 kB / 0.5618 GB, free: 1.441 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.1329, allocations: 79.41 kB / 0.5619 GB, free: 1.363 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1329, allocations: 0 / 0.5619 GB, free: 1.363 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03506/0.168, allocations: 4.903 MB / 0.5667 GB, free: 12.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.9/12.07, allocations: 5.406 kB / 0.5667 GB, free: 12.61 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.89140721806325] Failed to read output from testmodel.py, exit status != 0: 12.179232258815318 12.201310802 12.084600946 Calling exit ...