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.005676/0.005676, allocations: 96.7 kB / 15.73 MB, free: 6.051 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.423/1.423, allocations: 222.9 MB / 239.4 MB, free: 4.539 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.001208/0.001208, allocations: 192.5 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03497/0.03497, allocations: 8.799 MB / 348.7 MB, free: 4.613 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 79.86 kB / 463.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1068, allocations: 51.57 MB / 0.5034 GB, free: 9.461 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.2433/0.3502, allocations: 28.71 MB / 0.5315 GB, free: 4.988 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01557/0.3658, allocations: 8.453 MB / 0.5397 GB, free: 4.852 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005618/0.3715, allocations: 216.5 kB / 0.5399 GB, free: 4.852 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01674/0.3883, allocations: 8.129 MB / 0.5479 GB, free: 3.418 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009407/0.3977, allocations: 2.807 MB / 0.5506 GB, free: 2.605 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006162/0.4039, allocations: 1.871 MB / 0.5524 GB, free: 2.41 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01775/0.4216, allocations: 9.989 MB / 0.5622 GB, free: 13.95 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04093/0.4626, allocations: 21.35 MB / 0.583 GB, free: 15.07 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009752/0.4724, allocations: 5.361 MB / 0.5883 GB, free: 9.801 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01104/0.4835, allocations: 6.048 MB / 0.5942 GB, free: 3.906 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004613/0.4881, allocations: 1.539 MB / 0.5957 GB, free: 2.367 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007028/0.4952, allocations: 1.889 MB / 0.5975 GB, free: 496 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00496/0.5002, allocations: 2.982 MB / 0.6004 GB, free: 13.53 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01111/0.5113, allocations: 5.853 MB / 0.6061 GB, free: 7.695 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02681/0.5381, allocations: 20.68 MB / 0.6263 GB, free: 3.355 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.5382, allocations: 0 / 0.6263 GB, free: 3.355 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.5382, allocations: 0 / 0.6263 GB, free: 3.355 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007661/0.539, allocations: 0 / 0.6263 GB, free: 3.355 MB / 430.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.04232/0.5813, allocations: 12.06 MB / 0.6381 GB, free: 7.266 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.5814, allocations: 15.91 kB / 0.6381 GB, free: 7.25 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03222/0.6136, allocations: 5.677 MB / 0.6437 GB, free: 1.625 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01459/0.6282, allocations: 6.337 MB / 0.6499 GB, free: 11.25 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008801/0.6291, allocations: 0.701 MB / 0.6505 GB, free: 10.55 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004459/0.6336, allocations: 0.9361 MB / 0.6515 GB, free: 9.629 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04106/0.6747, allocations: 15.07 MB / 0.6662 GB, free: 10.51 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005586/0.6753, allocations: 15.95 kB / 0.6662 GB, free: 10.5 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003553/0.6789, allocations: 392.4 kB / 0.6666 GB, free: 10.12 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006733/0.6796, allocations: 0.5194 MB / 0.6671 GB, free: 9.598 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03416/0.7138, allocations: 13.74 MB / 0.6805 GB, free: 11.83 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5287/1.243, allocations: 47.43 MB / 0.7268 GB, free: 131.7 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0209/1.263, allocations: 28.78 MB / 0.7549 GB, free: 106.3 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005441/1.269, allocations: 2.898 MB / 0.7577 GB, free: 106.3 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004126/1.269, allocations: 235.7 kB / 0.758 GB, free: 106.1 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.185e-05/1.269, allocations: 74.16 kB / 0.758 GB, free: 106.1 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=372): time 8.455e-06/1.269, allocations: 0 / 0.758 GB, free: 106.1 MB / 0.5138 GB Notification: Performance of matching and sorting (n=380): time 0.03124/1.301, allocations: 14.88 MB / 0.7726 GB, free: 104.4 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.631e-05/1.301, allocations: 92.61 kB / 0.7727 GB, free: 104.3 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00488/1.306, allocations: 3.774 MB / 0.7763 GB, free: 104 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0004077/1.306, allocations: 90.42 kB / 0.7764 GB, free: 104 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.001982/1.308, allocations: 4.221 MB / 0.7806 GB, free: 102.1 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001333/1.309, allocations: 1.37 MB / 0.7819 GB, free: 101.2 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001628/1.311, allocations: 1.175 MB / 0.783 GB, free: 101.1 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.368e-05/1.311, allocations: 306.2 kB / 0.7833 GB, free: 100.8 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003174/1.314, allocations: 2.576 MB / 0.7858 GB, free: 100.2 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003869/1.318, allocations: 5.054 MB / 0.7908 GB, free: 95.96 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007805/1.326, allocations: 8.258 MB / 0.7988 GB, free: 90.05 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.923e-05/1.326, allocations: 25.03 kB / 0.7989 GB, free: 90.05 MB / 0.5138 GB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01188/1.338, allocations: 8.634 MB / 0.8073 GB, free: 86.56 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 5.618e-05/1.338, allocations: 41.91 kB / 0.8073 GB, free: 86.56 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001204/1.338, allocations: 88.77 kB / 0.8074 GB, free: 86.56 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002244/1.34, allocations: 0.8655 MB / 0.8083 GB, free: 86.23 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004393/1.345, allocations: 1.363 MB / 0.8096 GB, free: 85.89 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009349/1.354, allocations: 9.033 MB / 0.8184 GB, free: 77.22 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004103/1.358, allocations: 335 kB / 0.8187 GB, free: 76.9 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005989/1.359, allocations: 304 kB / 0.819 GB, free: 76.61 MB / 0.5138 GB 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.00502/1.364, allocations: 3.517 MB / 0.8225 GB, free: 73.07 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001084/1.365, allocations: 437.2 kB / 0.8229 GB, free: 72.64 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008358/1.373, allocations: 5.852 MB / 0.8286 GB, free: 66.75 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-05/1.373, allocations: 40 kB / 0.8286 GB, free: 66.71 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.233e-05/1.373, allocations: 9.219 kB / 0.8287 GB, free: 66.71 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.96e-05/1.374, allocations: 19.92 kB / 0.8287 GB, free: 66.69 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02/1.394, allocations: 14.48 MB / 0.8428 GB, free: 52.18 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.279e-05/1.394, allocations: 4 kB / 0.8428 GB, free: 52.18 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002411/1.396, allocations: 0.6635 MB / 0.8435 GB, free: 51.52 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001903/1.398, allocations: 0.7253 MB / 0.8442 GB, free: 50.79 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002276/1.398, allocations: 79.98 kB / 0.8442 GB, free: 50.71 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007851/1.406, allocations: 8.073 MB / 0.8521 GB, free: 42.36 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/1.406, allocations: 4.031 kB / 0.8521 GB, free: 42.36 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01172/1.418, allocations: 8.524 MB / 0.8605 GB, free: 33.73 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001947/1.42, allocations: 0.8964 MB / 0.8613 GB, free: 32.82 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005331/1.42, allocations: 76 kB / 0.8614 GB, free: 32.74 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001759/1.422, allocations: 183.8 kB / 0.8616 GB, free: 32.56 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004701/1.423, allocations: 251.2 kB / 0.8618 GB, free: 32.32 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001991/1.423, allocations: 104 kB / 0.8619 GB, free: 32.21 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.002999/1.426, allocations: 2.528 MB / 0.8644 GB, free: 29.7 MB / 0.5138 GB Notification: Performance of sort global known variables: time 5.21e-07/1.426, allocations: 0 / 0.8644 GB, free: 29.7 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.005374/1.431, allocations: 1.559 MB / 0.8659 GB, free: 28.14 MB / 0.5138 GB 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.0005904/1.432, allocations: 245.6 kB / 0.8661 GB, free: 27.9 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.009486/1.441, allocations: 6.565 MB / 0.8726 GB, free: 21.32 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 7.243e-06/1.441, allocations: 0 / 0.8726 GB, free: 21.32 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.004083/1.445, allocations: 2.977 MB / 0.8755 GB, free: 18.32 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004848/1.45, allocations: 0.9617 MB / 0.8764 GB, free: 17.39 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02589/1.476, allocations: 15.88 MB / 0.8919 GB, free: 1.418 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006519/1.483, allocations: 5.97 MB / 0.8977 GB, free: 11.4 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00498/1.488, allocations: 1.869 MB / 0.8996 GB, free: 9.527 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001138/1.489, allocations: 351.3 kB / 0.8999 GB, free: 9.184 MB / 0.5294 GB Notification: Performance of SimCode: time 1.092e-06/1.489, allocations: 0 / 0.8999 GB, free: 9.184 MB / 0.5294 GB Notification: Performance of Templates: time 0.3457/1.835, allocations: 60.32 MB / 0.9588 GB, free: 176.9 MB / 0.5607 GB 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)