Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001447/0.001447, allocations: 192.1 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.301/1.301, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008321/0.0008321, allocations: 100.7 kB / 299.9 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001902/0.0001902, allocations: 4 kB / 360.7 MB, free: 8.438 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1783/0.1785, allocations: 51.41 MB / 412.1 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening): time 0.01536/0.1939, allocations: 21.67 MB / 433.7 MB, free: 4.133 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01315/0.2071, allocations: 9.914 MB / 443.7 MB, free: 9.637 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003115/0.2102, allocations: 151.6 kB / 443.8 MB, free: 9.488 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003241/0.2135, allocations: 1.442 MB / 445.3 MB, free: 8.039 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005911/0.2194, allocations: 3.238 MB / 448.5 MB, free: 4.57 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00342/0.2229, allocations: 2.263 MB / 450.8 MB, free: 2.121 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.007868/0.2307, allocations: 7.93 MB / 458.7 MB, free: 10.16 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02302/0.2538, allocations: 18.06 MB / 476.7 MB, free: 7.016 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00469/0.2585, allocations: 2.903 MB / 479.6 MB, free: 4.102 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00548/0.264, allocations: 3.552 MB / 483.2 MB, free: 0.5352 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001589/0.2656, allocations: 440 kB / 483.6 MB, free: 108 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003056/0.2687, allocations: 0.7692 MB / 484.4 MB, free: 15.34 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001988/0.2707, allocations: 1.424 MB / 485.8 MB, free: 13.91 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00457/0.2753, allocations: 3.453 MB / 489.3 MB, free: 10.43 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01282/0.2882, allocations: 14.12 MB / 0.4916 GB, free: 12.26 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2882, allocations: 0 / 0.4916 GB, free: 12.26 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.795e-06/0.2882, allocations: 0 / 0.4916 GB, free: 12.26 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003136/0.2885, allocations: 0 / 0.4916 GB, free: 12.26 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1903 * Number of variables: 1903 Notification: Performance of Generate backend data structure: time 0.01972/0.3083, allocations: 7.716 MB / 0.4991 GB, free: 4.457 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.3083, allocations: 8.031 kB / 0.4991 GB, free: 4.449 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1906/0.4989, allocations: 5.318 MB / 0.5043 GB, free: 81.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008424/0.5074, allocations: 4.634 MB / 0.5089 GB, free: 79.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003695/0.5078, allocations: 0.5082 MB / 0.5094 GB, free: 78.81 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001585/0.5094, allocations: 0.6721 MB / 0.51 GB, free: 78.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01948/0.5289, allocations: 11.11 MB / 0.5209 GB, free: 73.58 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001572/0.5291, allocations: 19.42 kB / 0.5209 GB, free: 73.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008174/0.5299, allocations: 290.4 kB / 0.5212 GB, free: 73.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002835/0.5302, allocations: 425.3 kB / 0.5216 GB, free: 73.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01586/0.546, allocations: 10.68 MB / 0.532 GB, free: 63.85 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04109/0.5872, allocations: 36.38 MB / 0.5675 GB, free: 26.82 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007877/0.5951, allocations: 11.88 MB / 0.5791 GB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003349/0.5985, allocations: 2.851 MB / 0.5819 GB, free: 10.98 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003079/0.5988, allocations: 244.2 kB / 0.5821 GB, free: 10.72 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.927e-05/0.5989, allocations: 77.44 kB / 0.5822 GB, free: 10.63 MB / 378.7 MB Notification: Performance of pre-optimization done (n=365): time 5.25e-06/0.5989, allocations: 4 kB / 0.5822 GB, free: 10.63 MB / 378.7 MB Notification: Performance of matching and sorting (n=375): time 0.03162/0.6305, allocations: 15.93 MB / 0.5978 GB, free: 10.64 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.788e-05/0.6306, allocations: 116.1 kB / 0.5979 GB, free: 10.51 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004036/0.6346, allocations: 2.77 MB / 0.6006 GB, free: 7.719 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003886/0.6351, allocations: 85.7 kB / 0.6007 GB, free: 7.629 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001805/0.6369, allocations: 2.879 MB / 0.6035 GB, free: 4.73 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001156/0.638, allocations: 1.269 MB / 0.6047 GB, free: 3.473 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002303/0.6383, allocations: 96 kB / 0.6048 GB, free: 3.379 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000281/0.6386, allocations: 0.4926 MB / 0.6053 GB, free: 2.879 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003496/0.6421, allocations: 2.285 MB / 0.6075 GB, free: 0.5859 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004381/0.6465, allocations: 3.914 MB / 0.6114 GB, free: 11.94 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008534/0.655, allocations: 6.711 MB / 0.6179 GB, free: 4.488 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.06e-05/0.6551, allocations: 19.94 kB / 0.6179 GB, free: 4.469 MB / 410.7 MB Notification: Performance of matching and sorting (n=611) (initialization): time 0.0117/0.6668, allocations: 7.076 MB / 0.6248 GB, free: 13.36 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001116/0.6679, allocations: 1.605 MB / 0.6264 GB, free: 11.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-05/0.668, allocations: 52 kB / 0.6265 GB, free: 10.98 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00365/0.6717, allocations: 1.237 MB / 0.6277 GB, free: 9.746 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00416/0.6758, allocations: 1.076 MB / 0.6287 GB, free: 8.668 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00345/0.6793, allocations: 2.398 MB / 0.6311 GB, free: 6.246 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00334/0.6827, allocations: 303.5 kB / 0.6313 GB, free: 5.949 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007355/0.6834, allocations: 220 kB / 0.6315 GB, free: 5.734 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.6835, allocations: 5.25 kB / 0.6316 GB, free: 5.73 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01252/0.696, allocations: 6.724 MB / 0.6381 GB, free: 14.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001457/0.6962, allocations: 56.09 kB / 0.6382 GB, free: 14.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003376/0.6996, allocations: 1.138 MB / 0.6393 GB, free: 13.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004074/0.7037, allocations: 1.072 MB / 0.6403 GB, free: 12.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003006/0.7067, allocations: 2.304 MB / 0.6426 GB, free: 10.38 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003216/0.7099, allocations: 283.7 kB / 0.6429 GB, free: 10.11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006681/0.7106, allocations: 220 kB / 0.6431 GB, free: 9.891 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 232 * Number of states: 0 () * Number of discrete variables: 1 (fieldWeakeningController.PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (546): * Single equations (assignments): 545 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(11,55)} Notification: Performance of prepare postOptimizeDAE: time 0.004301/0.7149, allocations: 2.553 MB / 0.6456 GB, free: 7.324 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008542/0.7158, allocations: 351.7 kB / 0.6459 GB, free: 6.977 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01044/0.7262, allocations: 5.866 MB / 0.6516 GB, free: 1.074 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-05/0.7263, allocations: 39.94 kB / 0.6517 GB, free: 1.035 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-05/0.7263, allocations: 0 / 0.6517 GB, free: 1.035 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.763e-05/0.7264, allocations: 19.92 kB / 0.6517 GB, free: 1.016 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02212/0.7485, allocations: 12.92 MB / 0.6643 GB, free: 3.98 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.245e-05/0.7485, allocations: 0 / 0.6643 GB, free: 3.98 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002798/0.7513, allocations: 0.675 MB / 0.665 GB, free: 3.305 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003124/0.7545, allocations: 0.9896 MB / 0.6659 GB, free: 2.312 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003119/0.7548, allocations: 79.97 kB / 0.666 GB, free: 2.234 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002744/0.7576, allocations: 2.054 MB / 0.668 GB, free: 156 kB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/0.7576, allocations: 4 kB / 0.668 GB, free: 152 kB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01273/0.7703, allocations: 8.501 MB / 0.6763 GB, free: 7.582 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001776/0.7721, allocations: 0.8364 MB / 0.6771 GB, free: 6.723 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000737/0.7729, allocations: 68 kB / 0.6772 GB, free: 6.656 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002047/0.775, allocations: 231.8 kB / 0.6774 GB, free: 6.43 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004805/0.7755, allocations: 222.8 kB / 0.6776 GB, free: 6.211 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002503/0.7757, allocations: 107.9 kB / 0.6777 GB, free: 6.105 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003325/0.7791, allocations: 1.844 MB / 0.6795 GB, free: 4.258 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.7791, allocations: 0 / 0.6795 GB, free: 4.258 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00677/0.7858, allocations: 2.092 MB / 0.6816 GB, free: 2.168 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (speedSource.phi,fieldWeakeningController.PID.I.y) * 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 (346): * Single equations (assignments): 345 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(9,50)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006322/0.7865, allocations: 257.2 kB / 0.6818 GB, free: 1.914 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.1676/0.9541, allocations: 9.137 MB / 0.6907 GB, free: 162 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.261e-06/0.9541, allocations: 0 / 0.6907 GB, free: 162 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004156/0.9583, allocations: 2.622 MB / 0.6933 GB, free: 161.1 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003635/0.962, allocations: 0.7667 MB / 0.694 GB, free: 160.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01685/0.9788, allocations: 15.52 MB / 0.7092 GB, free: 152.6 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003152/0.982, allocations: 4.445 MB / 0.7135 GB, free: 150.7 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.005647/0.9877, allocations: 2.288 MB / 0.7158 GB, free: 149.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007848/0.9885, allocations: 287.8 kB / 0.716 GB, free: 148.9 MB / 474.7 MB Notification: Performance of SimCode: time 7.41e-07/0.9885, allocations: 0 / 0.716 GB, free: 148.9 MB / 474.7 MB Notification: Performance of Templates: time 0.07966/1.068, allocations: 58.44 MB / 0.7731 GB, free: 91.07 MB / 474.7 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_FieldWeakening.pipe 2>&1)