Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|terminalBoxQS.plugSupply.pin.1..v.re|terminalBoxQS.plugSupply.pin.1..v.im|terminalBoxQS.plugSupply.pin.1..i.re|terminalBoxQS.plugSupply.pin.1..i.im|terminalBoxQS.plugSupply.pin.2..v.re|terminalBoxQS.plugSupply.pin.2..v.im|terminalBoxQS.plugSupply.pin.2..i.re|terminalBoxQS.plugSupply.pin.2..i.im|terminalBoxQS.plugSupply.pin.3..v.re|terminalBoxQS.plugSupply.pin.3..v.im|terminalBoxQS.plugSupply.pin.3..i.re|terminalBoxQS.plugSupply.pin.3..i.im",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001229/0.001229, allocations: 100.5 kB / 17.85 MB, free: 5.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001344/0.001344, allocations: 205.8 kB / 18.79 MB, free: 4.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.329/1.329, allocations: 227.4 MB / 246.9 MB, free: 9.02 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 60.62 kB / 306.9 MB, free: 0.7852 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1162, allocations: 50.54 MB / 357.5 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2452/0.3615, allocations: 41.05 MB / 398.5 MB, free: 12.99 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02858/0.3902, allocations: 11.09 MB / 409.6 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01354/0.4037, allocations: 300.2 kB / 409.9 MB, free: 4.879 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0209/0.4247, allocations: 8.221 MB / 418.1 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0153/0.44, allocations: 3.238 MB / 421.4 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008632/0.4486, allocations: 2.27 MB / 423.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0197/0.4684, allocations: 13.48 MB / 437.1 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04162/0.51, allocations: 20.81 MB / 457.9 MB, free: 7.996 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0125/0.5226, allocations: 6.028 MB / 464 MB, free: 1.949 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01253/0.5352, allocations: 7.574 MB / 471.5 MB, free: 10.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005084/0.5403, allocations: 1.324 MB / 472.9 MB, free: 9.02 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007257/0.5476, allocations: 1.745 MB / 474.6 MB, free: 7.277 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005881/0.5535, allocations: 3.345 MB / 477.9 MB, free: 3.922 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01427/0.5678, allocations: 7.078 MB / 485 MB, free: 12.81 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02472/0.5925, allocations: 22.83 MB / 0.496 GB, free: 5.926 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.5926, allocations: 0 / 0.496 GB, free: 5.926 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.5926, allocations: 0 / 0.496 GB, free: 5.926 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0008779/0.5935, allocations: 0 / 0.496 GB, free: 5.926 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.04878/0.6422, allocations: 15.51 MB / 0.5111 GB, free: 6.301 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.6423, allocations: 8.031 kB / 0.5111 GB, free: 6.293 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03361/0.6759, allocations: 6.197 MB / 0.5172 GB, free: 76 kB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01644/0.6924, allocations: 8.022 MB / 0.525 GB, free: 7.973 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009293/0.6934, allocations: 0.939 MB / 0.5259 GB, free: 7.031 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004644/0.698, allocations: 1.23 MB / 0.5271 GB, free: 5.801 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4217/1.12, allocations: 19.01 MB / 0.5457 GB, free: 120.3 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000692/1.12, allocations: 24.86 kB / 0.5457 GB, free: 120.3 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004915/1.125, allocations: 0.5067 MB / 0.5462 GB, free: 120 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008956/1.126, allocations: 0.6556 MB / 0.5468 GB, free: 119.9 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04012/1.166, allocations: 17.03 MB / 0.5635 GB, free: 113 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1037/1.27, allocations: 61.36 MB / 0.6234 GB, free: 54.65 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0212/1.291, allocations: 33.49 MB / 0.6561 GB, free: 17.28 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006493/1.298, allocations: 3.832 MB / 0.6598 GB, free: 13.44 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01839/1.316, allocations: 9.113 MB / 0.6687 GB, free: 4.297 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.017e-05/1.316, allocations: 73.34 kB / 0.6688 GB, free: 4.215 MB / 446.1 MB Notification: Performance of pre-optimization done (n=361): time 6.081e-06/1.316, allocations: 0 / 0.6688 GB, free: 4.215 MB / 446.1 MB Notification: Performance of matching and sorting (n=403): time 0.04/1.356, allocations: 17.76 MB / 0.6862 GB, free: 2.332 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.053e-05/1.357, allocations: 94.56 kB / 0.6862 GB, free: 2.227 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01163/1.368, allocations: 5.256 MB / 0.6914 GB, free: 12.99 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008844/1.369, allocations: 93.7 kB / 0.6915 GB, free: 12.89 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004517/1.374, allocations: 5.62 MB / 0.697 GB, free: 7.242 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001989/1.376, allocations: 1.405 MB / 0.6983 GB, free: 5.852 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004366/1.38, allocations: 1.354 MB / 0.6996 GB, free: 4.488 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001101/1.38, allocations: 309.1 kB / 0.6999 GB, free: 4.184 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005789/1.386, allocations: 2.969 MB / 0.7028 GB, free: 1.211 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00787/1.394, allocations: 6.015 MB / 0.7087 GB, free: 9.762 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2688/1.663, allocations: 9.655 MB / 0.7181 GB, free: 150 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001222/1.663, allocations: 32.75 kB / 0.7182 GB, free: 150 MB / 494.1 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01982/1.683, allocations: 10.09 MB / 0.728 GB, free: 147.7 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.866e-05/1.683, allocations: 48.97 kB / 0.7281 GB, free: 147.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002109/1.683, allocations: 102.7 kB / 0.7282 GB, free: 147.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002787/1.686, allocations: 0.9366 MB / 0.7291 GB, free: 147.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006701/1.693, allocations: 1.629 MB / 0.7307 GB, free: 147.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01145/1.704, allocations: 9.507 MB / 0.74 GB, free: 140.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006876/1.711, allocations: 415.4 kB / 0.7404 GB, free: 140.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001122/1.712, allocations: 365.5 kB / 0.7407 GB, free: 140.7 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (841): * Single equations (assignments): 836 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007396/1.72, allocations: 4.304 MB / 0.7449 GB, free: 138.7 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001343/1.721, allocations: 0.543 MB / 0.7454 GB, free: 138.7 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009677/1.731, allocations: 6.678 MB / 0.752 GB, free: 136 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.729e-05/1.731, allocations: 48.2 kB / 0.752 GB, free: 135.9 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-05/1.731, allocations: 7.812 kB / 0.752 GB, free: 135.9 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.544e-05/1.731, allocations: 22.45 kB / 0.752 GB, free: 135.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02568/1.756, allocations: 16.26 MB / 0.7679 GB, free: 129.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.779e-05/1.756, allocations: 7.719 kB / 0.7679 GB, free: 129.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002979/1.759, allocations: 0.7735 MB / 0.7687 GB, free: 129.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002085/1.762, allocations: 0.7882 MB / 0.7694 GB, free: 129.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003383/1.762, allocations: 88.06 kB / 0.7695 GB, free: 129.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008047/1.77, allocations: 8.654 MB / 0.778 GB, free: 123 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.022e-06/1.77, allocations: 11.44 kB / 0.778 GB, free: 123 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01305/1.783, allocations: 9.784 MB / 0.7875 GB, free: 115.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002705/1.786, allocations: 1.092 MB / 0.7886 GB, free: 114.4 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000947/1.787, allocations: 80 kB / 0.7887 GB, free: 114.3 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002326/1.789, allocations: 226.9 kB / 0.7889 GB, free: 114.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000697/1.79, allocations: 282.9 kB / 0.7892 GB, free: 113.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002683/1.79, allocations: 123.9 kB / 0.7893 GB, free: 113.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.006676/1.797, allocations: 3.502 MB / 0.7927 GB, free: 110.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 7.62e-07/1.797, allocations: 0 / 0.7927 GB, free: 110.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.008141/1.805, allocations: 1.953 MB / 0.7946 GB, free: 108.3 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.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 (384): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (8,38,59.4%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008796/1.806, allocations: 272.5 kB / 0.7949 GB, free: 108 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01066/1.817, allocations: 7.821 MB / 0.8025 GB, free: 100.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.101e-05/1.817, allocations: 0 / 0.8025 GB, free: 100.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005283/1.822, allocations: 3.638 MB / 0.8061 GB, free: 96.41 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008631/1.831, allocations: 1.309 MB / 0.8073 GB, free: 95.14 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04558/1.876, allocations: 25.38 MB / 0.8321 GB, free: 69.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01293/1.889, allocations: 7.206 MB / 0.8392 GB, free: 62.45 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002792/1.892, allocations: 483.3 kB / 0.8396 GB, free: 61.97 MB / 494.1 MB Notification: Performance of SimCode: time 1.362e-06/1.892, allocations: 0 / 0.8396 GB, free: 61.97 MB / 494.1 MB Notification: Performance of Templates: time 1.133/3.025, allocations: 473.9 MB / 1.302 GB, free: 165.7 MB / 0.5138 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches