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.01093/0.01093, allocations: 101.4 kB / 15.88 MB, free: 5.863 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.906/1.906, allocations: 222.9 MB / 239.5 MB, free: 4.848 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.001388/0.001388, allocations: 192.5 kB / 289.8 MB, free: 2.578 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03658/0.03658, allocations: 8.794 MB / 348.7 MB, free: 4.969 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001626/0.001626, allocations: 77.73 kB / 411.1 MB, free: 42.43 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1089, allocations: 51.56 MB / 462.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.03135/0.1403, allocations: 28.21 MB / 490.8 MB, free: 2.699 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02048/0.1609, allocations: 8.377 MB / 499.2 MB, free: 10.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007643/0.1685, allocations: 211.3 kB / 499.4 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0194/0.188, allocations: 7.677 MB / 0.4952 GB, free: 2.398 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01186/0.1999, allocations: 2.576 MB / 0.4977 GB, free: 15.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006656/0.2066, allocations: 1.727 MB / 0.4994 GB, free: 14.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01542/0.222, allocations: 9.899 MB / 0.5091 GB, free: 4.164 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03528/0.2574, allocations: 17.81 MB / 0.5265 GB, free: 2.211 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2977/0.5551, allocations: 4.675 MB / 0.531 GB, free: 18.47 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01538/0.5706, allocations: 5.801 MB / 0.5367 GB, free: 18.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007229/0.5779, allocations: 1.049 MB / 0.5377 GB, free: 18.23 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01013/0.5881, allocations: 1.394 MB / 0.5391 GB, free: 18.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00865/0.5968, allocations: 2.477 MB / 0.5415 GB, free: 17.89 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01883/0.6157, allocations: 5.339 MB / 0.5467 GB, free: 16.54 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02474/0.6404, allocations: 17.92 MB / 0.5642 GB, free: 10.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.3e-05/0.6406, allocations: 0 / 0.5642 GB, free: 10.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.797e-06/0.6406, allocations: 0 / 0.5642 GB, free: 10.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0008506/0.6414, allocations: 3.844 kB / 0.5642 GB, free: 10.98 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.05662/0.6981, allocations: 11.89 MB / 0.5758 GB, free: 4.145 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.009e-05/0.6982, allocations: 7.625 kB / 0.5758 GB, free: 4.145 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0583/0.7565, allocations: 5.61 MB / 0.5813 GB, free: 1.617 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02605/0.7826, allocations: 6.13 MB / 0.5873 GB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00144/0.7841, allocations: 0.7167 MB / 0.588 GB, free: 12.22 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007998/0.7922, allocations: 0.9257 MB / 0.5889 GB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08149/0.8737, allocations: 15.08 MB / 0.6036 GB, free: 12.18 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005867/0.8744, allocations: 19.8 kB / 0.6036 GB, free: 12.16 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006268/0.8807, allocations: 392 kB / 0.604 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009008/0.8816, allocations: 0.5132 MB / 0.6045 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0421/0.9238, allocations: 13.73 MB / 0.6179 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1259/1.05, allocations: 47.83 MB / 0.6646 GB, free: 13.34 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03859/1.088, allocations: 28.77 MB / 0.6927 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007662/1.096, allocations: 2.898 MB / 0.6956 GB, free: 9.953 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009515/1.097, allocations: 240.4 kB / 0.6958 GB, free: 9.691 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001614/1.097, allocations: 72.58 kB / 0.6959 GB, free: 9.613 MB / 494.1 MB Notification: Performance of pre-optimization done (n=372): time 1.475e-05/1.097, allocations: 0 / 0.6959 GB, free: 9.613 MB / 494.1 MB Notification: Performance of matching and sorting (n=380): time 0.3619/1.459, allocations: 14.69 MB / 0.7102 GB, free: 162.6 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.432e-05/1.459, allocations: 98.27 kB / 0.7103 GB, free: 162.6 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01108/1.47, allocations: 3.761 MB / 0.714 GB, free: 162.2 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009956/1.472, allocations: 85.2 kB / 0.7141 GB, free: 162.2 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005236/1.477, allocations: 4.075 MB / 0.718 GB, free: 159.9 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002756/1.48, allocations: 1.309 MB / 0.7193 GB, free: 159.1 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004049/1.484, allocations: 1.164 MB / 0.7204 GB, free: 159 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.366e-05/1.484, allocations: 305.7 kB / 0.7207 GB, free: 158.7 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006802/1.491, allocations: 2.569 MB / 0.7232 GB, free: 158.7 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01013/1.501, allocations: 5.051 MB / 0.7282 GB, free: 155.7 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01392/1.515, allocations: 8.252 MB / 0.7362 GB, free: 150.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002793/1.515, allocations: 23.53 kB / 0.7363 GB, free: 150.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.02135/1.537, allocations: 8.607 MB / 0.7447 GB, free: 146.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000288/1.537, allocations: 43.06 kB / 0.7447 GB, free: 146.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003218/1.537, allocations: 81.31 kB / 0.7448 GB, free: 146.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002885/1.54, allocations: 0.8506 MB / 0.7456 GB, free: 146.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005722/1.546, allocations: 1.363 MB / 0.7469 GB, free: 146.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01183/1.558, allocations: 8.361 MB / 0.7551 GB, free: 141.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006122/1.564, allocations: 333.6 kB / 0.7554 GB, free: 141.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001844/1.566, allocations: 306.3 kB / 0.7557 GB, free: 141.1 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.01087/1.577, allocations: 3.511 MB / 0.7591 GB, free: 139.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002014/1.579, allocations: 415.5 kB / 0.7595 GB, free: 138.8 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01526/1.594, allocations: 5.853 MB / 0.7653 GB, free: 133.9 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.361e-05/1.594, allocations: 40 kB / 0.7653 GB, free: 133.9 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.408e-05/1.594, allocations: 8 kB / 0.7653 GB, free: 133.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.602e-05/1.594, allocations: 23.17 kB / 0.7653 GB, free: 133.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03891/1.633, allocations: 14.75 MB / 0.7797 GB, free: 120.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.7e-05/1.633, allocations: 4.062 kB / 0.7797 GB, free: 120.3 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003252/1.637, allocations: 0.6702 MB / 0.7804 GB, free: 119.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002358/1.639, allocations: 0.71 MB / 0.7811 GB, free: 119 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008015/1.64, allocations: 83.97 kB / 0.7812 GB, free: 118.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009779/1.65, allocations: 7.398 MB / 0.7884 GB, free: 111.2 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/1.65, allocations: 4 kB / 0.7884 GB, free: 111.2 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01542/1.665, allocations: 8.476 MB / 0.7967 GB, free: 102.6 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002987/1.668, allocations: 0.8823 MB / 0.7975 GB, free: 101.7 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001714/1.67, allocations: 75.94 kB / 0.7976 GB, free: 101.7 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003239/1.673, allocations: 179.9 kB / 0.7978 GB, free: 101.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009414/1.674, allocations: 246.7 kB / 0.798 GB, free: 101.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000553/1.675, allocations: 115.9 kB / 0.7981 GB, free: 101.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006122/1.681, allocations: 2.524 MB / 0.8006 GB, free: 98.62 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.91e-07/1.681, allocations: 0 / 0.8006 GB, free: 98.62 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.009501/1.69, allocations: 1.547 MB / 0.8021 GB, free: 97.07 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.00132/1.692, allocations: 251.4 kB / 0.8023 GB, free: 96.82 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01301/1.705, allocations: 6.536 MB / 0.8087 GB, free: 90.27 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.046e-05/1.705, allocations: 0 / 0.8087 GB, free: 90.27 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00626/1.711, allocations: 2.948 MB / 0.8116 GB, free: 87.29 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008571/1.72, allocations: 0.9148 MB / 0.8125 GB, free: 86.41 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04308/1.763, allocations: 19.45 MB / 0.8315 GB, free: 66.91 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01179/1.775, allocations: 5.798 MB / 0.8371 GB, free: 61.07 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002328/1.777, allocations: 383.4 kB / 0.8375 GB, free: 60.69 MB / 494.1 MB Notification: Performance of SimCode: time 1.793e-06/1.777, allocations: 0 / 0.8375 GB, free: 60.69 MB / 494.1 MB Notification: Performance of Templates: time 0.5596/2.337, allocations: 205.2 MB / 1.038 GB, free: 14.43 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)