Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001252/0.001252, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.00149/0.00149, allocations: 177.3 kB / 15.94 MB, free: 228 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.555/1.555, allocations: 205.4 MB / 222.1 MB, free: 5.492 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.0004605/0.0004607, allocations: 12 kB / 278.9 MB, free: 12.7 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.2997, allocations: 47.58 MB / 326.4 MB, free: 1.441 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01616/0.3159, allocations: 12.82 MB / 339.3 MB, free: 6.641 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01345/0.3294, allocations: 5.142 MB / 344.4 MB, free: 1.488 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003664/0.3331, allocations: 83.62 kB / 344.5 MB, free: 1.406 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003347/0.3364, allocations: 0.9443 MB / 345.4 MB, free: 468 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00686/0.3433, allocations: 1.379 MB / 346.8 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00273/0.3461, allocations: 0.7211 MB / 347.5 MB, free: 14.35 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006391/0.3525, allocations: 2.704 MB / 350.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003319/0.3558, allocations: 2.528 MB / 352.8 MB, free: 9.066 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002393/0.3582, allocations: 1.257 MB / 354 MB, free: 7.805 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002253/0.3605, allocations: 1.599 MB / 355.6 MB, free: 6.199 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003614/0.3608, allocations: 204 kB / 355.8 MB, free: 6 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001053/0.3619, allocations: 387.7 kB / 356.2 MB, free: 5.621 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008146/0.3627, allocations: 0.8605 MB / 357.1 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007704/0.3635, allocations: 0.7536 MB / 357.8 MB, free: 3.996 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00544/0.369, allocations: 5.512 MB / 363.3 MB, free: 14.47 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.369, allocations: 3.938 kB / 363.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.369, allocations: 7.938 kB / 363.3 MB, free: 14.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001938/0.3692, allocations: 0 / 363.3 MB, free: 14.46 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.01099/0.3802, allocations: 3.94 MB / 367.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.3803, allocations: 12.03 kB / 367.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003534/0.3838, allocations: 0.6705 MB / 368 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005286/0.3891, allocations: 2.291 MB / 370.3 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002413/0.3894, allocations: 266.9 kB / 370.5 MB, free: 7.152 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005808/0.39, allocations: 347.8 kB / 370.9 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00796/0.3979, allocations: 4.406 MB / 375.3 MB, free: 2.352 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.591e-05/0.398, allocations: 3.938 kB / 375.3 MB, free: 2.348 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002954/0.3983, allocations: 140 kB / 375.4 MB, free: 2.211 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001599/0.3985, allocations: 166.7 kB / 375.6 MB, free: 2.047 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006595/0.4051, allocations: 3.716 MB / 379.3 MB, free: 14.32 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02249/0.4276, allocations: 14.49 MB / 393.8 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005609/0.4333, allocations: 5.345 MB / 399.1 MB, free: 9.355 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006491/0.4398, allocations: 3.213 MB / 402.3 MB, free: 6.062 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.768e-05/0.4399, allocations: 47.88 kB / 402.4 MB, free: 6.008 MB / 334.1 MB Notification: Performance of pre-optimization done (n=138): time 3.517e-06/0.4399, allocations: 0 / 402.4 MB, free: 6.008 MB / 334.1 MB Notification: Performance of matching and sorting (n=143): time 0.01083/0.4507, allocations: 5.766 MB / 408.1 MB, free: 96 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.991e-05/0.4508, allocations: 64.72 kB / 408.2 MB, free: 20 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003325/0.4541, allocations: 2.003 MB / 410.2 MB, free: 13.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001679/0.4543, allocations: 49.7 kB / 410.3 MB, free: 13.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001209/0.4555, allocations: 1.645 MB / 411.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004518/0.456, allocations: 492.8 kB / 412.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.855e-05/0.4561, allocations: 47.94 kB / 412.4 MB, free: 11.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.4563, allocations: 377.9 kB / 412.8 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00129/0.4576, allocations: 0.7495 MB / 413.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001577/0.4592, allocations: 1.354 MB / 414.9 MB, free: 8.973 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001476/0.4607, allocations: 0.994 MB / 415.9 MB, free: 7.977 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.448e-06/0.4607, allocations: 4 kB / 415.9 MB, free: 7.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=242) (initialization): time 0.004032/0.4647, allocations: 2.58 MB / 418.5 MB, free: 5.355 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.074e-05/0.4648, allocations: 12 kB / 418.5 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.531e-05/0.4648, allocations: 20.5 kB / 418.5 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003723/0.4652, allocations: 146.5 kB / 418.7 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001692/0.4669, allocations: 487.2 kB / 419.1 MB, free: 4.695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002563/0.4695, allocations: 3.095 MB / 422.2 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001654/0.4712, allocations: 116 kB / 422.3 MB, free: 1.219 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001596/0.4713, allocations: 84 kB / 422.4 MB, free: 1.137 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 89 * 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 (235): * Single equations (assignments): 232 * 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.002117/0.4735, allocations: 1.051 MB / 423.5 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004493/0.4739, allocations: 213.4 kB / 423.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003669/0.4776, allocations: 2.29 MB / 426 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-05/0.4776, allocations: 16 kB / 426 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.114e-05/0.4777, allocations: 4 kB / 426 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.536e-05/0.4777, allocations: 11.91 kB / 426 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008785/0.4865, allocations: 5.413 MB / 431.4 MB, free: 7.918 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.867e-06/0.4865, allocations: 4 kB / 431.4 MB, free: 7.914 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001096/0.4876, allocations: 247.6 kB / 431.7 MB, free: 7.672 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006761/0.4883, allocations: 271.5 kB / 431.9 MB, free: 7.395 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.683e-05/0.4884, allocations: 32 kB / 432 MB, free: 7.363 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007236/0.4957, allocations: 7.162 MB / 439.1 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.923e-06/0.4957, allocations: 7.922 kB / 439.1 MB, free: 15.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005896/0.5016, allocations: 3.521 MB / 442.6 MB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001355/0.503, allocations: 470.2 kB / 443.1 MB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002396/0.5032, allocations: 28 kB / 443.1 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009226/0.5042, allocations: 79.92 kB / 443.2 MB, free: 11.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002239/0.5044, allocations: 109 kB / 443.3 MB, free: 11.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.247e-05/0.5045, allocations: 39.98 kB / 443.4 MB, free: 11.21 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002482/0.507, allocations: 1.348 MB / 444.7 MB, free: 9.844 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.507, allocations: 0 / 444.7 MB, free: 9.844 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002458/0.5095, allocations: 0.5665 MB / 445.3 MB, free: 9.277 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (123): * Single equations (assignments): 119 * 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%) 1,(1,100.0%) 5,(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.0003992/0.5099, allocations: 159 kB / 445.4 MB, free: 9.109 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003413/0.5133, allocations: 2.186 MB / 447.6 MB, free: 6.879 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/0.5133, allocations: 4 kB / 447.6 MB, free: 6.875 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002084/0.5154, allocations: 1.424 MB / 449 MB, free: 5.402 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002286/0.5177, allocations: 0.507 MB / 449.5 MB, free: 4.891 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1981/0.7158, allocations: 7.42 MB / 457 MB, free: 109 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002284/0.7182, allocations: 2.486 MB / 459.5 MB, free: 108.2 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001914/0.7201, allocations: 0.4925 MB / 459.9 MB, free: 108.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004428/0.7205, allocations: 155.7 kB / 460.1 MB, free: 108.2 MB / 382.1 MB Notification: Performance of SimCode: time 9.22e-07/0.7205, allocations: 0.6562 kB / 460.1 MB, free: 108.2 MB / 382.1 MB Notification: Performance of Templates: time 0.04213/0.7627, allocations: 25.98 MB / 486.1 MB, free: 88.14 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) Environment - environmentSimulation: