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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001252/0.001252, allocations: 183.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03907/0.03907, allocations: 8.794 MB / 25.53 MB, free: 3.746 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 222.9 MB / 251.3 MB, free: 7.406 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009634/0.0009639, allocations: 110.6 kB / 303.6 MB, free: 14.5 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 67.89 kB / 366 MB, free: 176 kB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2073/0.2085, allocations: 51.55 MB / 417.5 MB, free: 20.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.004405/0.213, allocations: 2.902 MB / 420.4 MB, free: 17.99 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001021/0.214, allocations: 0.6466 MB / 421.1 MB, free: 17.34 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002459/0.2143, allocations: 4 kB / 421.1 MB, free: 17.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002397/0.2146, allocations: 35.7 kB / 421.1 MB, free: 17.3 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004628/0.215, allocations: 83.36 kB / 421.2 MB, free: 17.22 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003091/0.2154, allocations: 75.94 kB / 421.3 MB, free: 17.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005287/0.2159, allocations: 362.5 kB / 421.6 MB, free: 16.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002758/0.2162, allocations: 116.6 kB / 421.7 MB, free: 16.67 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001787/0.2164, allocations: 123.5 kB / 421.9 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001825/0.2166, allocations: 143.4 kB / 422 MB, free: 16.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.965e-05/0.2166, allocations: 28 kB / 422 MB, free: 16.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.823e-05/0.2167, allocations: 20 kB / 422 MB, free: 16.36 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.981e-05/0.2168, allocations: 59.7 kB / 422.1 MB, free: 16.3 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001285/0.2169, allocations: 159.2 kB / 422.3 MB, free: 16.15 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002933/0.2172, allocations: 388.8 kB / 422.6 MB, free: 15.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.2172, allocations: 0 / 422.6 MB, free: 15.77 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.2172, allocations: 0 / 422.6 MB, free: 15.77 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.2172, allocations: 0 / 422.6 MB, free: 15.77 MB / 298.7 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.0009152/0.2181, allocations: 0.5927 MB / 423.2 MB, free: 15.13 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.2182, allocations: 15.97 kB / 423.2 MB, free: 15.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.015e-05/0.2183, allocations: 32.56 kB / 423.3 MB, free: 15.08 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002681/0.2186, allocations: 271.7 kB / 423.5 MB, free: 14.78 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.091e-05/0.2186, allocations: 21.03 kB / 423.6 MB, free: 14.76 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.87e-05/0.2186, allocations: 32.38 kB / 423.6 MB, free: 14.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005132/0.2192, allocations: 278.1 kB / 423.9 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.2192, allocations: 7.938 kB / 423.9 MB, free: 14.44 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.84e-05/0.2192, allocations: 16 kB / 423.9 MB, free: 14.42 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.2192, allocations: 11.98 kB / 423.9 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004849/0.2197, allocations: 206.5 kB / 424.1 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001464/0.2212, allocations: 1.044 MB / 425.2 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003765/0.2216, allocations: 142.5 kB / 425.3 MB, free: 12.94 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001838/0.2218, allocations: 83.58 kB / 425.4 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.237e-05/0.2218, allocations: 15.92 kB / 425.4 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.522e-05/0.2218, allocations: 30.56 kB / 425.4 MB, free: 12.8 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.613e-06/0.2219, allocations: 0 / 425.4 MB, free: 12.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=16): time 0.001351/0.2232, allocations: 0.6818 MB / 426.1 MB, free: 12.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.237e-05/0.2232, allocations: 59.41 kB / 426.2 MB, free: 11.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002114/0.2235, allocations: 191.2 kB / 426.3 MB, free: 11.79 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.877e-05/0.2235, allocations: 29.7 kB / 426.4 MB, free: 11.75 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.248e-05/0.2236, allocations: 184.1 kB / 426.6 MB, free: 11.57 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.603e-05/0.2236, allocations: 59.19 kB / 426.6 MB, free: 11.51 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.722e-05/0.2237, allocations: 41.61 kB / 426.7 MB, free: 11.46 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.694e-05/0.2237, allocations: 334.8 kB / 427 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001749/0.2239, allocations: 59.97 kB / 427 MB, free: 11.07 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001825/0.2241, allocations: 106.9 kB / 427.1 MB, free: 10.95 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002957/0.2244, allocations: 170.7 kB / 427.3 MB, free: 10.77 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-06/0.2244, allocations: 0 / 427.3 MB, free: 10.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003929/0.2248, allocations: 234.2 kB / 427.5 MB, free: 10.53 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.2249, allocations: 10.34 kB / 427.5 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.2249, allocations: 0 / 427.5 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001199/0.225, allocations: 16.84 kB / 427.6 MB, free: 10.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001727/0.2252, allocations: 47.97 kB / 427.6 MB, free: 10.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006147/0.2258, allocations: 1.268 MB / 428.9 MB, free: 9.055 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001179/0.2259, allocations: 16.02 kB / 428.9 MB, free: 9.039 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.212e-05/0.2259, allocations: 4 kB / 428.9 MB, free: 9.035 MB / 298.7 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 9.705e-05/0.2261, allocations: 149.9 kB / 429 MB, free: 8.879 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.702e-05/0.2261, allocations: 15.81 kB / 429.1 MB, free: 8.863 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.078e-05/0.2261, allocations: 25.86 kB / 429.1 MB, free: 8.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.2261, allocations: 11.88 kB / 429.1 MB, free: 8.828 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.2262, allocations: 3.938 kB / 429.1 MB, free: 8.824 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.2262, allocations: 0 / 429.1 MB, free: 8.824 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006705/0.2268, allocations: 0.6232 MB / 429.7 MB, free: 8.137 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.2269, allocations: 0 / 429.7 MB, free: 8.137 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001827/0.227, allocations: 39.97 kB / 429.8 MB, free: 8.098 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.399e-05/0.2271, allocations: 12.86 kB / 429.8 MB, free: 8.082 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.447e-05/0.2271, allocations: 8 kB / 429.8 MB, free: 8.074 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005675/0.2277, allocations: 1.272 MB / 431.1 MB, free: 6.668 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2277, allocations: 0 / 431.1 MB, free: 6.668 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002705/0.2304, allocations: 3.219 MB / 434.3 MB, free: 3.16 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.279e-05/0.2305, allocations: 96.95 kB / 434.4 MB, free: 3.047 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.165e-05/0.2305, allocations: 4 kB / 434.4 MB, free: 3.043 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001398/0.2307, allocations: 15.92 kB / 434.4 MB, free: 3.027 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.455e-05/0.2307, allocations: 16.08 kB / 434.4 MB, free: 3.012 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.798e-06/0.2307, allocations: 4 kB / 434.4 MB, free: 3.008 MB / 298.7 MB Notification: Performance of sorting global known variables: time 8.211e-05/0.2308, allocations: 148.5 kB / 434.6 MB, free: 2.863 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2308, allocations: 0 / 434.6 MB, free: 2.863 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003838/0.2312, allocations: 72 kB / 434.6 MB, free: 2.793 MB / 298.7 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 7.085e-05/0.2313, allocations: 115.1 kB / 434.7 MB, free: 2.672 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004591/0.2318, allocations: 262.6 kB / 435 MB, free: 2.402 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2318, allocations: 0 / 435 MB, free: 2.402 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002267/0.232, allocations: 198.9 kB / 435.2 MB, free: 2.195 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003926/0.2324, allocations: 31.98 kB / 435.2 MB, free: 2.164 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001053/0.2335, allocations: 1.088 MB / 436.3 MB, free: 1.02 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001471/0.2336, allocations: 0.7639 MB / 437.1 MB, free: 236 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.99e-05/0.2337, allocations: 21.48 kB / 437.1 MB, free: 212 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.613e-05/0.2338, allocations: 19.44 kB / 437.1 MB, free: 192 kB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2338, allocations: 0 / 437.1 MB, free: 192 kB / 298.7 MB Notification: Performance of Templates: time 0.005347/0.2391, allocations: 2.654 MB / 439.8 MB, free: 13.55 MB / 314.7 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)