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.004977/0.004977, allocations: 100.9 kB / 15.73 MB, free: 6.066 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.286/1.286, allocations: 222.9 MB / 239.4 MB, free: 4.535 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.001439/0.00144, allocations: 192.5 kB / 289.7 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0328/0.0328, allocations: 8.8 MB / 348.7 MB, free: 4.625 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 75.89 kB / 463.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08552/0.08689, allocations: 51.57 MB / 0.5034 GB, free: 9.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.003578/0.0905, allocations: 2.855 MB / 0.5062 GB, free: 6.676 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008997/0.09141, allocations: 0.6544 MB / 0.5068 GB, free: 6.016 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001217/0.09156, allocations: 12 kB / 0.5068 GB, free: 6.004 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001541/0.09172, allocations: 51.5 kB / 0.5069 GB, free: 5.953 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002102/0.09194, allocations: 99.11 kB / 0.507 GB, free: 5.855 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001446/0.09209, allocations: 75.92 kB / 0.507 GB, free: 5.781 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003302/0.09243, allocations: 382.4 kB / 0.5074 GB, free: 5.406 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002302/0.09266, allocations: 136.5 kB / 0.5075 GB, free: 5.266 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001383/0.09281, allocations: 143.4 kB / 0.5077 GB, free: 5.125 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001699/0.09299, allocations: 151.3 kB / 0.5078 GB, free: 4.977 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.966e-05/0.09304, allocations: 36 kB / 0.5078 GB, free: 4.941 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.857e-05/0.09311, allocations: 39.94 kB / 0.5079 GB, free: 4.902 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.918e-05/0.09317, allocations: 71.81 kB / 0.5079 GB, free: 4.832 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001398/0.09332, allocations: 179.1 kB / 0.5081 GB, free: 4.656 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003787/0.0937, allocations: 418.4 kB / 0.5085 GB, free: 4.246 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.09371, allocations: 0 / 0.5085 GB, free: 4.246 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.09372, allocations: 0 / 0.5085 GB, free: 4.246 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.09373, allocations: 0 / 0.5085 GB, free: 4.246 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.0008109/0.09455, allocations: 0.5962 MB / 0.5091 GB, free: 3.598 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.947e-05/0.09458, allocations: 12.03 kB / 0.5091 GB, free: 3.586 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.99e-05/0.09466, allocations: 36.75 kB / 0.5091 GB, free: 3.551 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003092/0.09497, allocations: 275.9 kB / 0.5094 GB, free: 3.242 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.801e-05/0.095, allocations: 21.03 kB / 0.5094 GB, free: 3.223 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.796e-05/0.09505, allocations: 28.38 kB / 0.5095 GB, free: 3.195 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004888/0.09555, allocations: 274.2 kB / 0.5097 GB, free: 2.922 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.09557, allocations: 0 / 0.5097 GB, free: 2.922 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.895e-05/0.09561, allocations: 16 kB / 0.5097 GB, free: 2.906 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.09562, allocations: 12 kB / 0.5097 GB, free: 2.895 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000437/0.09606, allocations: 210.4 kB / 0.5099 GB, free: 2.688 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001384/0.09745, allocations: 1.033 MB / 0.511 GB, free: 1.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003363/0.0978, allocations: 146.5 kB / 0.5111 GB, free: 1.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001705/0.09799, allocations: 80.8 kB / 0.5112 GB, free: 1.348 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.863e-05/0.09802, allocations: 7.922 kB / 0.5112 GB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.669e-05/0.09805, allocations: 42.56 kB / 0.5112 GB, free: 1.289 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.222e-06/0.09806, allocations: 0 / 0.5112 GB, free: 1.289 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001301/0.09936, allocations: 0.6865 MB / 0.5119 GB, free: 0.5312 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.019e-05/0.09941, allocations: 59.39 kB / 0.5119 GB, free: 472 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00017/0.09958, allocations: 199.2 kB / 0.5121 GB, free: 264 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.09961, allocations: 29.7 kB / 0.5122 GB, free: 228 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.212e-05/0.09971, allocations: 184.4 kB / 0.5123 GB, free: 40 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.15e-05/0.09976, allocations: 63.66 kB / 0.5124 GB, free: 15.97 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.278e-05/0.09983, allocations: 33.72 kB / 0.5124 GB, free: 15.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.956e-05/0.09994, allocations: 338.5 kB / 0.5128 GB, free: 15.6 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001573/0.1001, allocations: 63.97 kB / 0.5128 GB, free: 15.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001698/0.1003, allocations: 96.25 kB / 0.5129 GB, free: 15.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003104/0.1006, allocations: 169.7 kB / 0.5131 GB, free: 15.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.1006, allocations: 0 / 0.5131 GB, free: 15.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004327/0.101, allocations: 231.5 kB / 0.5133 GB, free: 15.01 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.1011, allocations: 4 kB / 0.5133 GB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.738e-06/0.1011, allocations: 128 / 0.5133 GB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001262/0.1012, allocations: 32.78 kB / 0.5133 GB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000181/0.1014, allocations: 39.97 kB / 0.5134 GB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008838/0.1023, allocations: 1.375 MB / 0.5147 GB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001211/0.1024, allocations: 11.98 kB / 0.5147 GB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.468e-05/0.1024, allocations: 8 kB / 0.5147 GB, free: 13.4 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.0001188/0.1026, allocations: 149.8 kB / 0.5149 GB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.133e-05/0.1026, allocations: 19.84 kB / 0.5149 GB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.206e-05/0.1027, allocations: 25.86 kB / 0.5149 GB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.1027, allocations: 4 kB / 0.5149 GB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.736e-06/0.1027, allocations: 0 / 0.5149 GB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.1027, allocations: 0 / 0.5149 GB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007845/0.1035, allocations: 0.6062 MB / 0.5155 GB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.1035, allocations: 7.938 kB / 0.5155 GB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000189/0.1037, allocations: 39.97 kB / 0.5156 GB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.635e-05/0.1038, allocations: 12.86 kB / 0.5156 GB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.612e-05/0.1038, allocations: 11.98 kB / 0.5156 GB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007808/0.1046, allocations: 1.371 MB / 0.5169 GB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.1046, allocations: 0 / 0.5169 GB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000557/0.1051, allocations: 377.8 kB / 0.5173 GB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.871e-05/0.1052, allocations: 97.05 kB / 0.5174 GB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.448e-05/0.1052, allocations: 4 kB / 0.5174 GB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000152/0.1054, allocations: 19.98 kB / 0.5174 GB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.004e-05/0.1054, allocations: 11.98 kB / 0.5174 GB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.076e-05/0.1055, allocations: 4 kB / 0.5174 GB, free: 10.4 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001107/0.1056, allocations: 148.2 kB / 0.5175 GB, free: 10.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1056, allocations: 0 / 0.5175 GB, free: 10.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003087/0.1059, allocations: 52 kB / 0.5176 GB, free: 10.2 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 9.386e-05/0.106, allocations: 111.1 kB / 0.5177 GB, free: 10.08 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005189/0.1065, allocations: 283 kB / 0.518 GB, free: 9.797 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1065, allocations: 0 / 0.518 GB, free: 9.797 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002628/0.1068, allocations: 187 kB / 0.5181 GB, free: 9.602 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003605/0.1072, allocations: 47.91 kB / 0.5182 GB, free: 9.555 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009753/0.1082, allocations: 0.6717 MB / 0.5189 GB, free: 8.848 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002591/0.1084, allocations: 0.7593 MB / 0.5196 GB, free: 8.059 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.539e-05/0.1085, allocations: 21.53 kB / 0.5196 GB, free: 8.039 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.284e-05/0.1086, allocations: 19.44 kB / 0.5196 GB, free: 8.02 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1086, allocations: 0 / 0.5196 GB, free: 8.02 MB / 366.1 MB Notification: Performance of Templates: time 0.00483/0.1134, allocations: 2.297 MB / 0.5219 GB, free: 5.738 MB / 366.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)