Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.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.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") translateModel(HanserModelica.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009245/0.0009244, allocations: 98.88 kB / 16.02 MB, free: 72 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.29/1.29, allocations: 223.3 MB / 240 MB, free: 5.473 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.0009634/0.0009634, allocations: 188.5 kB / 291.3 MB, free: 2.141 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03553/0.03553, allocations: 8.796 MB / 351.2 MB, free: 4.582 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003321/0.0003321, allocations: 11.06 kB / 414.5 MB, free: 42.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06421/0.06455, allocations: 52.57 MB / 467 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02495/0.08954, allocations: 26.99 MB / 494 MB, free: 1.977 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01351/0.1031, allocations: 8.303 MB / 0.4906 GB, free: 9.648 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003567/0.1067, allocations: 199.4 kB / 0.4907 GB, free: 9.453 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003667/0.1104, allocations: 1.758 MB / 0.4925 GB, free: 7.688 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005793/0.1162, allocations: 2.537 MB / 0.4949 GB, free: 5.145 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003049/0.1192, allocations: 1.533 MB / 0.4964 GB, free: 3.617 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00865/0.1279, allocations: 9.885 MB / 0.5061 GB, free: 9.695 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02964/0.1575, allocations: 21.36 MB / 0.527 GB, free: 4.191 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0043/0.1618, allocations: 3.759 MB / 0.5306 GB, free: 428 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1743/0.3362, allocations: 4.598 MB / 0.5351 GB, free: 19.63 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001939/0.3382, allocations: 0.5972 MB / 0.5357 GB, free: 19.63 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003201/0.3414, allocations: 0.939 MB / 0.5366 GB, free: 19.63 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001335/0.3427, allocations: 1.84 MB / 0.5384 GB, free: 19.3 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003882/0.3466, allocations: 4.609 MB / 0.5429 GB, free: 17.91 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01181/0.3584, allocations: 17.42 MB / 0.5599 GB, free: 11.34 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.196e-06/0.3585, allocations: 0 / 0.5599 GB, free: 11.34 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3585, allocations: 0 / 0.5599 GB, free: 11.34 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002953/0.3588, allocations: 6.312 kB / 0.5599 GB, free: 11.34 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: 2602 * Number of variables: 2602 Notification: Performance of Generate backend data structure: time 0.02182/0.3806, allocations: 9.79 MB / 0.5695 GB, free: 6.328 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.3806, allocations: 9.594 kB / 0.5695 GB, free: 6.328 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02917/0.4098, allocations: 5.632 MB / 0.575 GB, free: 4.137 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008092/0.4179, allocations: 6.152 MB / 0.581 GB, free: 2.387 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003129/0.4183, allocations: 0.7068 MB / 0.5817 GB, free: 2.363 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001346/0.4196, allocations: 0.9283 MB / 0.5826 GB, free: 2.355 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02274/0.4423, allocations: 15.08 MB / 0.5973 GB, free: 7.691 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001964/0.4426, allocations: 19.81 kB / 0.5973 GB, free: 7.672 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001061/0.4436, allocations: 392.4 kB / 0.5977 GB, free: 7.297 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004737/0.4441, allocations: 0.5195 MB / 0.5982 GB, free: 6.773 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02182/0.4659, allocations: 13.73 MB / 0.6116 GB, free: 9.027 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06072/0.5267, allocations: 47.99 MB / 0.6585 GB, free: 8.668 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02038/0.5471, allocations: 28.74 MB / 0.6866 GB, free: 8.199 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003959/0.5511, allocations: 2.899 MB / 0.6894 GB, free: 5.289 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002925/0.5514, allocations: 236 kB / 0.6896 GB, free: 5.031 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.121e-05/0.5514, allocations: 69.48 kB / 0.6897 GB, free: 4.953 MB / 478.1 MB Notification: Performance of pre-optimization done (n=372): time 5.471e-06/0.5514, allocations: 0 / 0.6897 GB, free: 4.953 MB / 478.1 MB Notification: Performance of matching and sorting (n=380): time 0.02876/0.5802, allocations: 14.72 MB / 0.7041 GB, free: 6.168 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.56e-05/0.5803, allocations: 90.39 kB / 0.7042 GB, free: 6.066 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005137/0.5854, allocations: 3.761 MB / 0.7078 GB, free: 2.316 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002169/0.5856, allocations: 85.7 kB / 0.7079 GB, free: 2.227 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.163/0.7487, allocations: 4.078 MB / 0.7119 GB, free: 167.5 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001204/0.7499, allocations: 1.313 MB / 0.7132 GB, free: 166.6 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009279/0.7508, allocations: 472.9 kB / 0.7136 GB, free: 166.6 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 3.317e-05/0.7509, allocations: 302.8 kB / 0.7139 GB, free: 166.3 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003755/0.7547, allocations: 2.568 MB / 0.7164 GB, free: 166.3 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004717/0.7594, allocations: 5.059 MB / 0.7214 GB, free: 163.3 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00846/0.7679, allocations: 8.253 MB / 0.7294 GB, free: 159.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.503e-05/0.7679, allocations: 23.47 kB / 0.7294 GB, free: 159.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01171/0.7796, allocations: 8.602 MB / 0.7378 GB, free: 156.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.411e-05/0.7797, allocations: 44.53 kB / 0.7379 GB, free: 156.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.42e-05/0.7798, allocations: 83.97 kB / 0.738 GB, free: 156.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002162/0.7819, allocations: 0.8592 MB / 0.7388 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004039/0.786, allocations: 1.357 MB / 0.7401 GB, free: 155.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009099/0.7951, allocations: 8.361 MB / 0.7483 GB, free: 150.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003246/0.7983, allocations: 335.8 kB / 0.7486 GB, free: 150.3 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003854/0.7987, allocations: 310.3 kB / 0.7489 GB, free: 150.3 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * 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 (720): * Single equations (assignments): 718 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004457/0.8032, allocations: 3.497 MB / 0.7523 GB, free: 148.5 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000576/0.8038, allocations: 423.7 kB / 0.7527 GB, free: 148.1 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008397/0.8122, allocations: 5.859 MB / 0.7585 GB, free: 143.2 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.049e-05/0.8122, allocations: 40 kB / 0.7585 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.087e-05/0.8122, allocations: 8 kB / 0.7585 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.069e-05/0.8123, allocations: 18.94 kB / 0.7585 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01802/0.8303, allocations: 14.77 MB / 0.7729 GB, free: 130.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.17e-05/0.8303, allocations: 8.656 kB / 0.7729 GB, free: 130.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002536/0.8329, allocations: 0.6674 MB / 0.7736 GB, free: 130.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001844/0.8347, allocations: 0.7101 MB / 0.7743 GB, free: 129.4 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001897/0.8349, allocations: 79.98 kB / 0.7744 GB, free: 129.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007641/0.8426, allocations: 7.406 MB / 0.7816 GB, free: 121.6 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.8426, allocations: 7.938 kB / 0.7816 GB, free: 121.6 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009941/0.8526, allocations: 8.477 MB / 0.7899 GB, free: 113 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001332/0.8539, allocations: 0.8941 MB / 0.7908 GB, free: 112.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004434/0.8543, allocations: 72 kB / 0.7908 GB, free: 112 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001796/0.8562, allocations: 175.8 kB / 0.791 GB, free: 111.9 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004005/0.8566, allocations: 254.7 kB / 0.7912 GB, free: 111.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000202/0.8568, allocations: 111.9 kB / 0.7913 GB, free: 111.5 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002876/0.8597, allocations: 2.52 MB / 0.7938 GB, free: 109 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8597, allocations: 0 / 0.7938 GB, free: 109 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004269/0.8639, allocations: 1.559 MB / 0.7953 GB, free: 107.5 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 2 (smpm.inertiaRotor.w,quadraticTorque.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 (362): * Single equations (assignments): 360 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004177/0.8644, allocations: 248.5 kB / 0.7956 GB, free: 107.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007585/0.872, allocations: 6.533 MB / 0.8019 GB, free: 100.7 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.872, allocations: 0 / 0.8019 GB, free: 100.7 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003517/0.8755, allocations: 2.961 MB / 0.8048 GB, free: 97.67 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005157/0.8807, allocations: 0.9085 MB / 0.8057 GB, free: 96.79 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01968/0.9004, allocations: 19.52 MB / 0.8248 GB, free: 77.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004509/0.9049, allocations: 5.794 MB / 0.8304 GB, free: 71.36 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001186/0.9061, allocations: 383.4 kB / 0.8308 GB, free: 70.98 MB / 494.1 MB Notification: Performance of SimCode: time 5.61e-07/0.9061, allocations: 0 / 0.8308 GB, free: 70.98 MB / 494.1 MB Notification: Performance of Templates: time 0.322/1.228, allocations: 203.9 MB / 1.03 GB, free: 23.6 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)