Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 92.31 kB / 15.06 MB, free: 1.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002007/0.002007, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.751/1.751, allocations: 205.4 MB / 222.1 MB, free: 5.664 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005219/0.0005221, allocations: 12 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3265/0.3271, allocations: 47.58 MB / 326.5 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01632/0.3434, allocations: 13.91 MB / 340.4 MB, free: 5.566 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01296/0.3564, allocations: 5.023 MB / 345.4 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004772/0.3612, allocations: 83.62 kB / 345.5 MB, free: 460 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003851/0.3651, allocations: 0.8466 MB / 346.3 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005883/0.371, allocations: 1.092 MB / 347.4 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002718/0.3738, allocations: 0.6626 MB / 348.1 MB, free: 13.84 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.007674/0.3815, allocations: 3.826 MB / 351.9 MB, free: 9.988 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005379/0.3869, allocations: 2.528 MB / 354.4 MB, free: 7.418 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002938/0.3898, allocations: 1.292 MB / 355.7 MB, free: 6.121 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003575/0.3934, allocations: 1.739 MB / 357.5 MB, free: 4.375 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00112/0.3945, allocations: 204 kB / 357.7 MB, free: 4.176 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002222/0.3968, allocations: 423.7 kB / 358.1 MB, free: 3.762 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001002/0.3978, allocations: 0.8876 MB / 359 MB, free: 2.871 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001226/0.399, allocations: 0.7575 MB / 359.7 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005811/0.4048, allocations: 5.571 MB / 365.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.178e-06/0.4049, allocations: 0 / 365.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.4049, allocations: 0 / 365.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000184/0.4051, allocations: 0 / 365.3 MB, free: 12.52 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.009851/0.4149, allocations: 3.967 MB / 369.3 MB, free: 8.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.344e-05/0.415, allocations: 8.031 kB / 369.3 MB, free: 8.473 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00318/0.4182, allocations: 0.6745 MB / 370 MB, free: 7.793 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00421/0.4224, allocations: 2.268 MB / 372.2 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002305/0.4227, allocations: 270.9 kB / 372.5 MB, free: 5.207 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005203/0.4232, allocations: 347.9 kB / 372.8 MB, free: 4.867 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007908/0.4311, allocations: 4.433 MB / 377.3 MB, free: 388 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.581e-05/0.4312, allocations: 0 / 377.3 MB, free: 388 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003045/0.4315, allocations: 140 kB / 377.4 MB, free: 248 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001726/0.4317, allocations: 162.7 kB / 377.6 MB, free: 84 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006434/0.4381, allocations: 3.72 MB / 381.3 MB, free: 12.36 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02381/0.4619, allocations: 14.56 MB / 395.8 MB, free: 13.37 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005295/0.4673, allocations: 5.357 MB / 401.2 MB, free: 7.309 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001996/0.4693, allocations: 1.272 MB / 402.5 MB, free: 6.035 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006779/0.4761, allocations: 3.827 MB / 406.3 MB, free: 2.117 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.487e-05/0.4762, allocations: 47.88 kB / 406.3 MB, free: 2.062 MB / 334.1 MB Notification: Performance of pre-optimization done (n=127): time 2.855e-06/0.4762, allocations: 0 / 406.3 MB, free: 2.062 MB / 334.1 MB Notification: Performance of matching and sorting (n=131): time 0.01017/0.4864, allocations: 5.494 MB / 411.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.196e-05/0.4864, allocations: 68.67 kB / 411.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003259/0.4897, allocations: 2.09 MB / 414 MB, free: 10.19 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.904e-05/0.4898, allocations: 49.7 kB / 414 MB, free: 10.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00139/0.4912, allocations: 1.661 MB / 415.7 MB, free: 8.453 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00046/0.4917, allocations: 457.5 kB / 416.1 MB, free: 8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.389e-05/0.4918, allocations: 39.94 kB / 416.2 MB, free: 7.961 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002691/0.492, allocations: 377.9 kB / 416.6 MB, free: 7.586 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001248/0.4933, allocations: 0.7105 MB / 417.3 MB, free: 6.875 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001928/0.4952, allocations: 1.341 MB / 418.6 MB, free: 5.246 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001644/0.4969, allocations: 0.9511 MB / 419.6 MB, free: 4.297 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.199e-05/0.4969, allocations: 12 kB / 419.6 MB, free: 4.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.004544/0.5015, allocations: 2.501 MB / 422.1 MB, free: 1.746 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.983e-05/0.5015, allocations: 16 kB / 422.1 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.234e-05/0.5016, allocations: 23.94 kB / 422.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004533/0.502, allocations: 154.9 kB / 422.3 MB, free: 1.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001697/0.5038, allocations: 463.2 kB / 422.7 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003496/0.5073, allocations: 3.071 MB / 425.8 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00226/0.5095, allocations: 123.8 kB / 425.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001492/0.5097, allocations: 79.98 kB / 426 MB, free: 13.56 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (227): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002409/0.5121, allocations: 1.048 MB / 427 MB, free: 12.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000461/0.5126, allocations: 217.3 kB / 427.2 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003645/0.5162, allocations: 2.173 MB / 429.4 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.436e-05/0.5163, allocations: 15.95 kB / 429.4 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.929e-06/0.5163, allocations: 4 kB / 429.4 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.554e-05/0.5163, allocations: 7.969 kB / 429.4 MB, free: 10.03 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008503/0.5248, allocations: 5.153 MB / 434.6 MB, free: 4.723 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.116e-05/0.5249, allocations: 11.89 kB / 434.6 MB, free: 4.711 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009947/0.5259, allocations: 220 kB / 434.8 MB, free: 4.496 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007163/0.5266, allocations: 271.2 kB / 435.1 MB, free: 4.219 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.809e-05/0.5267, allocations: 35.98 kB / 435.1 MB, free: 4.184 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006861/0.5336, allocations: 7.112 MB / 442.2 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.5336, allocations: 128 / 442.2 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005711/0.5393, allocations: 3.179 MB / 445.4 MB, free: 9.258 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001439/0.5408, allocations: 466.3 kB / 445.9 MB, free: 8.781 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007024/0.5415, allocations: 24 kB / 445.9 MB, free: 8.758 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001437/0.543, allocations: 79.92 kB / 446 MB, free: 8.68 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002295/0.5432, allocations: 92.8 kB / 446.1 MB, free: 8.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.724e-05/0.5433, allocations: 36 kB / 446.1 MB, free: 8.555 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003488/0.5468, allocations: 1.415 MB / 447.5 MB, free: 7.121 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5468, allocations: 4 kB / 447.5 MB, free: 7.117 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003402/0.5502, allocations: 0.5586 MB / 448.1 MB, free: 6.559 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005234/0.5508, allocations: 171 kB / 448.2 MB, free: 6.383 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004043/0.5548, allocations: 2.081 MB / 450.3 MB, free: 4.254 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.5548, allocations: 0 / 450.3 MB, free: 4.254 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002367/0.5572, allocations: 1.369 MB / 451.7 MB, free: 2.832 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003702/0.5609, allocations: 0.5188 MB / 452.2 MB, free: 2.309 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2386/0.7996, allocations: 7.349 MB / 459.6 MB, free: 109.1 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002507/0.8021, allocations: 2.418 MB / 462 MB, free: 108.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001978/0.8041, allocations: 499.7 kB / 462.5 MB, free: 108.3 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004019/0.8045, allocations: 155.3 kB / 462.6 MB, free: 108.3 MB / 382.1 MB Notification: Performance of SimCode: time 2.244e-06/0.8045, allocations: 1.969 kB / 462.6 MB, free: 108.3 MB / 382.1 MB Notification: Performance of Templates: time 0.04838/0.8529, allocations: 26.39 MB / 489 MB, free: 86.5 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1)