Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001317/0.001317, allocations: 191.6 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 226.6 MB / 244.7 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007893/0.0007892, allocations: 97.23 kB / 296.8 MB, free: 6.898 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002309/0.0002309, allocations: 8 kB / 356.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2253/0.2256, allocations: 51.29 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.0136/0.2392, allocations: 13.9 MB / 422 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008961/0.2482, allocations: 4.929 MB / 426.9 MB, free: 8.832 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00331/0.2516, allocations: 91.62 kB / 427 MB, free: 8.742 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002839/0.2544, allocations: 0.8233 MB / 427.8 MB, free: 7.914 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003996/0.2585, allocations: 1.01 MB / 428.8 MB, free: 6.898 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002157/0.2606, allocations: 0.6579 MB / 429.5 MB, free: 6.246 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004752/0.2654, allocations: 3.598 MB / 433.1 MB, free: 2.637 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003404/0.2688, allocations: 2.76 MB / 435.8 MB, free: 15.81 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002393/0.2712, allocations: 1.202 MB / 437 MB, free: 14.61 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002679/0.2739, allocations: 1.576 MB / 438.6 MB, free: 13.02 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005631/0.2745, allocations: 192 kB / 438.8 MB, free: 12.84 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001557/0.2761, allocations: 435.7 kB / 439.2 MB, free: 12.41 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008172/0.2769, allocations: 0.7863 MB / 440 MB, free: 11.62 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002147/0.2791, allocations: 1.615 MB / 441.6 MB, free: 9.992 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005408/0.2845, allocations: 5.119 MB / 446.7 MB, free: 4.859 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.2845, allocations: 0 / 446.7 MB, free: 4.859 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.2845, allocations: 4 kB / 446.7 MB, free: 4.855 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001703/0.2847, allocations: 0 / 446.7 MB, free: 4.855 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.008863/0.2936, allocations: 3.599 MB / 450.3 MB, free: 1.184 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.147e-05/0.2937, allocations: 12.03 kB / 450.3 MB, free: 1.172 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003304/0.297, allocations: 0.629 MB / 451 MB, free: 0.5391 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005172/0.3022, allocations: 2.207 MB / 453.2 MB, free: 14.27 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002995/0.3025, allocations: 250.8 kB / 453.4 MB, free: 14.03 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001004/0.3035, allocations: 311.8 kB / 453.7 MB, free: 13.72 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007801/0.3113, allocations: 4.023 MB / 457.8 MB, free: 9.633 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.871e-05/0.3114, allocations: 3.938 kB / 457.8 MB, free: 9.629 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002725/0.3117, allocations: 140 kB / 457.9 MB, free: 9.492 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001365/0.3119, allocations: 146.2 kB / 458 MB, free: 9.348 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006132/0.318, allocations: 3.366 MB / 461.4 MB, free: 5.973 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0199/0.3379, allocations: 13.54 MB / 474.9 MB, free: 7.941 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00388/0.3418, allocations: 4.259 MB / 479.2 MB, free: 3.137 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001549/0.3434, allocations: 1.043 MB / 480.2 MB, free: 2.094 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004331/0.3478, allocations: 2.866 MB / 483.1 MB, free: 15.1 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.437e-05/0.3478, allocations: 47.56 kB / 483.2 MB, free: 15.05 MB / 362.7 MB Notification: Performance of pre-optimization done (n=108): time 2.876e-06/0.3478, allocations: 0 / 483.2 MB, free: 15.05 MB / 362.7 MB Notification: Performance of matching and sorting (n=142): time 0.01074/0.3586, allocations: 5.991 MB / 489.2 MB, free: 8.965 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.032e-05/0.3587, allocations: 64.72 kB / 489.2 MB, free: 8.887 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002511/0.3612, allocations: 1.898 MB / 491.1 MB, free: 6.945 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.842e-05/0.3613, allocations: 45.7 kB / 491.2 MB, free: 6.895 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009315/0.3622, allocations: 1.516 MB / 492.7 MB, free: 5.359 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003479/0.3626, allocations: 489 kB / 493.2 MB, free: 4.875 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.125e-05/0.3627, allocations: 36 kB / 493.2 MB, free: 4.84 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.3628, allocations: 377.9 kB / 493.6 MB, free: 4.465 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001163/0.364, allocations: 0.7652 MB / 494.3 MB, free: 3.699 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001496/0.3655, allocations: 1.367 MB / 495.7 MB, free: 2.062 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002814/0.3683, allocations: 2.32 MB / 498 MB, free: 15.47 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.237e-06/0.3684, allocations: 4 kB / 498 MB, free: 15.47 MB / 378.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003761/0.3721, allocations: 2.458 MB / 0.4887 GB, free: 12.99 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.753e-05/0.3722, allocations: 20 kB / 0.4888 GB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.441e-05/0.3722, allocations: 20 kB / 0.4888 GB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003357/0.3725, allocations: 122.5 kB / 0.4889 GB, free: 12.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00167/0.3742, allocations: 487.2 kB / 0.4894 GB, free: 12.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009584/0.3752, allocations: 1.303 MB / 0.4906 GB, free: 10.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001331/0.3765, allocations: 107.8 kB / 0.4907 GB, free: 10.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001279/0.3767, allocations: 87.92 kB / 0.4908 GB, free: 10.71 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001713/0.3784, allocations: 0.9812 MB / 0.4918 GB, free: 9.723 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002878/0.3787, allocations: 213.5 kB / 0.492 GB, free: 9.512 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003093/0.3818, allocations: 1.962 MB / 0.4939 GB, free: 7.527 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.1e-05/0.3818, allocations: 12 kB / 0.4939 GB, free: 7.516 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3818, allocations: 3.938 kB / 0.4939 GB, free: 7.512 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.225e-05/0.3818, allocations: 7.969 kB / 0.4939 GB, free: 7.504 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007213/0.3891, allocations: 4.993 MB / 0.4988 GB, free: 2.406 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.333e-06/0.3891, allocations: 4 kB / 0.4988 GB, free: 2.402 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001264/0.3904, allocations: 319.7 kB / 0.4991 GB, free: 2.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002774/0.3907, allocations: 98.52 kB / 0.4992 GB, free: 1.984 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.013e-05/0.3907, allocations: 28 kB / 0.4992 GB, free: 1.957 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008366/0.3916, allocations: 1.277 MB / 0.5005 GB, free: 0.5508 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.3916, allocations: 7.984 kB / 0.5005 GB, free: 0.543 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1937/0.5853, allocations: 3.071 MB / 0.5035 GB, free: 89.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00104/0.5864, allocations: 463.7 kB / 0.5039 GB, free: 88.84 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002275/0.5866, allocations: 33.36 kB / 0.504 GB, free: 88.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001005/0.5876, allocations: 79.66 kB / 0.504 GB, free: 88.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001916/0.5878, allocations: 89.55 kB / 0.5041 GB, free: 88.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001099/0.5879, allocations: 36.84 kB / 0.5042 GB, free: 88.78 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001958/0.5899, allocations: 1.287 MB / 0.5054 GB, free: 88.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5899, allocations: 0 / 0.5054 GB, free: 88.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001638/0.5915, allocations: 0.5369 MB / 0.5059 GB, free: 88.21 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003093/0.5919, allocations: 171 kB / 0.5061 GB, free: 88.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003081/0.5949, allocations: 2.21 MB / 0.5083 GB, free: 87.08 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.595, allocations: 0 / 0.5083 GB, free: 87.08 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001521/0.5965, allocations: 1.177 MB / 0.5094 GB, free: 86.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002547/0.5991, allocations: 0.494 MB / 0.5099 GB, free: 86.29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008159/0.6072, allocations: 6.777 MB / 0.5165 GB, free: 82.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001483/0.6087, allocations: 2.228 MB / 0.5187 GB, free: 81.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006276/0.6094, allocations: 167.7 kB / 0.5188 GB, free: 81.46 MB / 378.7 MB Notification: Performance of SimCode: time 8.12e-07/0.6094, allocations: 0 / 0.5188 GB, free: 81.46 MB / 378.7 MB Notification: Performance of Templates: time 0.0712/0.6806, allocations: 85.8 MB / 0.6026 GB, free: 12.61 MB / 394.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches