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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) 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: translateModel(HanserModelica.Rotational.TestDCPMMachine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Rotational.TestDCPMMachine") translateModel(HanserModelica.Rotational.TestDCPMMachine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Rotational.TestDCPMMachine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009684/0.0009683, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.243/1.243, allocations: 222.9 MB / 238.9 MB, free: 4.746 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001114/0.001114, allocations: 180.5 kB / 289.1 MB, free: 2.508 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03196/0.03196, allocations: 8.788 MB / 348.1 MB, free: 4.918 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 75.69 kB / 410.4 MB, free: 42.39 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09252/0.09381, allocations: 51.56 MB / 462 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.003676/0.09753, allocations: 2.907 MB / 464.9 MB, free: 12 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000981/0.09854, allocations: 0.6428 MB / 465.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001408/0.09869, allocations: 4 kB / 465.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001733/0.09887, allocations: 39.7 kB / 465.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002047/0.09908, allocations: 75.33 kB / 465.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001422/0.09924, allocations: 79.92 kB / 465.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003007/0.09955, allocations: 350.4 kB / 466 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001931/0.09975, allocations: 120.1 kB / 466.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000117/0.09988, allocations: 119.5 kB / 466.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001484/0.1, allocations: 147.3 kB / 466.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.276e-05/0.1001, allocations: 28 kB / 466.4 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.782e-05/0.1001, allocations: 20 kB / 466.5 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.122e-05/0.1002, allocations: 55.78 kB / 466.5 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000124/0.1003, allocations: 159.1 kB / 466.7 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002937/0.1006, allocations: 398.9 kB / 467.1 MB, free: 9.785 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.217e-06/0.1006, allocations: 0 / 467.1 MB, free: 9.785 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.1006, allocations: 0 / 467.1 MB, free: 9.785 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.1007, allocations: 0 / 467.1 MB, free: 9.785 MB / 302.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.0008828/0.1015, allocations: 0.585 MB / 467.6 MB, free: 9.152 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.1016, allocations: 12.03 kB / 467.7 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.856e-05/0.1017, allocations: 36.5 kB / 467.7 MB, free: 9.105 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002613/0.1019, allocations: 275.7 kB / 468 MB, free: 8.797 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.1e-05/0.102, allocations: 25.03 kB / 468 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.585e-05/0.102, allocations: 28.38 kB / 468 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004897/0.1025, allocations: 274.2 kB / 468.3 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.597e-05/0.1025, allocations: 0 / 468.3 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.685e-05/0.1026, allocations: 16 kB / 468.3 MB, free: 8.453 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.667e-06/0.1026, allocations: 8 kB / 468.3 MB, free: 8.445 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004173/0.103, allocations: 214.4 kB / 468.5 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001375/0.1044, allocations: 1.044 MB / 469.6 MB, free: 7.117 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003296/0.1047, allocations: 150.4 kB / 469.7 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/0.1049, allocations: 82.92 kB / 469.8 MB, free: 6.879 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.803e-05/0.1049, allocations: 3.938 kB / 469.8 MB, free: 6.875 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.93e-05/0.1049, allocations: 34.56 kB / 469.8 MB, free: 6.832 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.214e-06/0.1049, allocations: 0 / 469.8 MB, free: 6.832 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.001262/0.1062, allocations: 0.6812 MB / 470.5 MB, free: 6.078 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.09e-05/0.1063, allocations: 59.39 kB / 470.6 MB, free: 6.008 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001618/0.1064, allocations: 195.2 kB / 470.8 MB, free: 5.809 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.917e-05/0.1064, allocations: 25.7 kB / 470.8 MB, free: 5.777 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.885e-05/0.1065, allocations: 184.1 kB / 471 MB, free: 5.594 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.345e-05/0.1066, allocations: 67.08 kB / 471 MB, free: 5.527 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.948e-05/0.1067, allocations: 33.72 kB / 471.1 MB, free: 5.488 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.434e-05/0.1068, allocations: 338.8 kB / 471.4 MB, free: 5.148 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001456/0.1069, allocations: 55.97 kB / 471.4 MB, free: 5.094 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001619/0.1071, allocations: 106.5 kB / 471.5 MB, free: 4.977 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002892/0.1074, allocations: 170.4 kB / 471.7 MB, free: 4.797 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1074, allocations: 0 / 471.7 MB, free: 4.797 MB / 302.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004108/0.1078, allocations: 230.2 kB / 471.9 MB, free: 4.562 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.1078, allocations: 12 kB / 472 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.1078, allocations: 0 / 472 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001216/0.108, allocations: 24.78 kB / 472 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001787/0.1082, allocations: 43.97 kB / 472 MB, free: 4.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008215/0.109, allocations: 1.272 MB / 473.3 MB, free: 3.074 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001177/0.1091, allocations: 16.02 kB / 473.3 MB, free: 3.059 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.314e-05/0.1091, allocations: 7.938 kB / 473.3 MB, free: 3.051 MB / 302.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.0001263/0.1093, allocations: 153.8 kB / 473.5 MB, free: 2.891 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.928e-05/0.1093, allocations: 19.72 kB / 473.5 MB, free: 2.871 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.073e-05/0.1094, allocations: 21.88 kB / 473.5 MB, free: 2.852 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.1094, allocations: 11.92 kB / 473.5 MB, free: 2.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.1094, allocations: 4 kB / 473.5 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.1094, allocations: 0 / 473.5 MB, free: 2.836 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007701/0.1102, allocations: 0.6102 MB / 474.1 MB, free: 2.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.1102, allocations: 0 / 474.1 MB, free: 2.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001893/0.1104, allocations: 35.92 kB / 474.2 MB, free: 2.125 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.351e-05/0.1105, allocations: 20.84 kB / 474.2 MB, free: 2.102 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/0.1105, allocations: 4 kB / 474.2 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007914/0.1113, allocations: 1.276 MB / 475.5 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.1113, allocations: 0 / 475.5 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005713/0.1119, allocations: 373.8 kB / 475.8 MB, free: 304 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.904e-05/0.1119, allocations: 101 kB / 475.9 MB, free: 184 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.501e-05/0.112, allocations: 3.984 kB / 475.9 MB, free: 180 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001484/0.1121, allocations: 19.97 kB / 476 MB, free: 160 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.012e-05/0.1122, allocations: 11.98 kB / 476 MB, free: 148 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.112e-05/0.1122, allocations: 4 kB / 476 MB, free: 144 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001407/0.1123, allocations: 148.6 kB / 476.1 MB, free: 15.99 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.2e-07/0.1123, allocations: 0 / 476.1 MB, free: 15.99 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002956/0.1126, allocations: 52 kB / 476.2 MB, free: 15.94 MB / 318.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.0001023/0.1128, allocations: 107.7 kB / 476.3 MB, free: 15.82 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004968/0.1133, allocations: 264.3 kB / 476.5 MB, free: 15.55 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.1133, allocations: 0 / 476.5 MB, free: 15.55 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002534/0.1135, allocations: 197.2 kB / 476.7 MB, free: 15.35 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004269/0.114, allocations: 35.03 kB / 476.8 MB, free: 15.32 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001136/0.1151, allocations: 0.8117 MB / 477.6 MB, free: 14.48 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002912/0.1154, allocations: 0.7557 MB / 478.3 MB, free: 13.7 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.726e-05/0.1155, allocations: 13.55 kB / 478.3 MB, free: 13.68 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.535e-05/0.1155, allocations: 19.44 kB / 478.4 MB, free: 13.66 MB / 318.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1156, allocations: 0 / 478.4 MB, free: 13.66 MB / 318.1 MB Notification: Performance of Templates: time 0.005144/0.1207, allocations: 2.121 MB / 480.5 MB, free: 11.57 MB / 318.1 MB make -j1 -f HanserModelica_HanserModelica.Rotational.TestDCPMMachine.makefile (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 & ./HanserModelica_HanserModelica.Rotational.TestDCPMMachine -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe 2>&1)