Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.w|speedSensor.flange.phi|smpm.is.1.|smpm.is.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.004096/0.004102, allocations: 189.5 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.466/4.466, allocations: 205.4 MB / 222.5 MB, free: 13.76 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001869/0.001869, allocations: 90.86 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006808/0.0006812, allocations: 8 kB / 327 MB, free: 15.07 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.16/0.1607, allocations: 47.58 MB / 374.5 MB, free: 15.42 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.0354/0.1962, allocations: 12.2 MB / 386.7 MB, free: 3.168 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.43/0.6263, allocations: 4.868 MB / 391.6 MB, free: 9.281 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004914/0.6313, allocations: 78.75 kB / 391.7 MB, free: 9.281 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007047/0.6384, allocations: 0.9096 MB / 392.6 MB, free: 9.277 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01021/0.6487, allocations: 1.307 MB / 393.9 MB, free: 9.266 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005759/0.6545, allocations: 0.6892 MB / 394.6 MB, free: 9.254 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01156/0.6661, allocations: 2.496 MB / 397.1 MB, free: 9.242 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01/0.6762, allocations: 2.275 MB / 399.4 MB, free: 8.793 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00634/0.6827, allocations: 1.159 MB / 400.5 MB, free: 8.734 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007124/0.6899, allocations: 1.457 MB / 402 MB, free: 8.426 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002254/0.6922, allocations: 188.5 kB / 402.2 MB, free: 8.426 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004817/0.6971, allocations: 364.7 kB / 402.5 MB, free: 8.422 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003175/0.7004, allocations: 0.7591 MB / 403.3 MB, free: 8.312 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003598/0.7041, allocations: 0.698 MB / 404 MB, free: 8.168 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01346/0.7176, allocations: 5.007 MB / 409 MB, free: 5.809 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.624e-06/0.7177, allocations: 1.469 kB / 409 MB, free: 5.809 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.398e-06/0.7177, allocations: 4.984 kB / 409 MB, free: 5.805 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0003368/0.7181, allocations: 0 / 409 MB, free: 5.805 MB / 282.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.02272/0.7408, allocations: 3.594 MB / 412.6 MB, free: 3.746 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.596e-05/0.7409, allocations: 9.344 kB / 412.6 MB, free: 3.746 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008528/0.7494, allocations: 0.6275 MB / 413.2 MB, free: 3.469 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01093/0.7604, allocations: 2.058 MB / 415.3 MB, free: 2.164 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006812/0.7612, allocations: 242.4 kB / 415.5 MB, free: 2.055 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002188/0.7634, allocations: 310.5 kB / 415.8 MB, free: 1.953 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02301/0.7865, allocations: 3.993 MB / 419.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000287/0.7869, allocations: 3.906 kB / 419.8 MB, free: 15.4 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001868/0.7888, allocations: 132 kB / 420 MB, free: 15.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003943/0.7893, allocations: 146.2 kB / 420.1 MB, free: 15.13 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01932/0.8086, allocations: 3.354 MB / 423.4 MB, free: 11.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05753/0.8662, allocations: 13.31 MB / 436.8 MB, free: 14.11 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01114/0.8774, allocations: 3.956 MB / 440.7 MB, free: 9.66 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01573/0.8933, allocations: 2.65 MB / 443.4 MB, free: 6.957 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.066e-05/0.8934, allocations: 51.5 kB / 443.4 MB, free: 6.898 MB / 314.7 MB Notification: Performance of pre-optimization done (n=113): time 1.161e-05/0.8935, allocations: 0 / 443.4 MB, free: 6.898 MB / 314.7 MB Notification: Performance of matching and sorting (n=147): time 0.03478/0.9283, allocations: 6.066 MB / 449.5 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.312e-05/0.9284, allocations: 67.23 kB / 449.5 MB, free: 0.6797 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007779/0.9362, allocations: 1.802 MB / 451.3 MB, free: 14.83 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004859/0.9368, allocations: 49.7 kB / 451.4 MB, free: 14.78 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0025/0.9393, allocations: 1.445 MB / 452.8 MB, free: 13.32 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00127/0.9407, allocations: 0.4958 MB / 453.3 MB, free: 12.83 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003474/0.9411, allocations: 40 kB / 453.4 MB, free: 12.79 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0003687/0.9415, allocations: 382.8 kB / 453.7 MB, free: 12.41 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003867/0.9454, allocations: 0.773 MB / 454.5 MB, free: 11.64 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004747/0.9502, allocations: 1.377 MB / 455.9 MB, free: 9.992 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004596/0.9549, allocations: 1.023 MB / 456.9 MB, free: 8.973 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.307e-05/0.955, allocations: 8 kB / 456.9 MB, free: 8.965 MB / 330.7 MB Notification: Performance of matching and sorting (n=239) (initialization): time 0.01148/0.9665, allocations: 2.366 MB / 459.3 MB, free: 6.582 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.876e-05/0.9666, allocations: 16.03 kB / 459.3 MB, free: 6.566 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-05/0.9667, allocations: 20 kB / 459.3 MB, free: 6.547 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000869/0.9676, allocations: 118.5 kB / 459.4 MB, free: 6.422 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005593/0.9732, allocations: 499.2 kB / 459.9 MB, free: 5.934 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002239/0.9756, allocations: 1.319 MB / 461.3 MB, free: 4.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0044/0.98, allocations: 115.7 kB / 461.4 MB, free: 4.367 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000666/0.9808, allocations: 84 kB / 461.4 MB, free: 4.285 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * 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 (236): * Single equations (assignments): 233 * 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.005018/0.9858, allocations: 0.9853 MB / 462.4 MB, free: 3.289 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001095/0.9869, allocations: 201.6 kB / 462.6 MB, free: 3.09 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01055/0.9975, allocations: 1.997 MB / 464.6 MB, free: 1.07 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-05/0.9977, allocations: 16 kB / 464.6 MB, free: 1.055 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.316e-05/0.9977, allocations: 2.516 kB / 464.6 MB, free: 1.055 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.174e-05/0.9978, allocations: 7.969 kB / 464.7 MB, free: 1.047 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02558/1.023, allocations: 5.038 MB / 469.7 MB, free: 11.94 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.1e-05/1.023, allocations: 4 kB / 469.7 MB, free: 11.94 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004557/1.028, allocations: 327.8 kB / 470 MB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008524/1.029, allocations: 98.52 kB / 470.1 MB, free: 11.51 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004833/1.03, allocations: 24 kB / 470.1 MB, free: 11.49 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002173/1.032, allocations: 1.292 MB / 471.4 MB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.006e-05/1.032, allocations: 4 kB / 471.4 MB, free: 10.06 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0142/1.046, allocations: 3.273 MB / 474.7 MB, free: 6.656 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002877/1.049, allocations: 462.4 kB / 475.2 MB, free: 6.184 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001378/1.05, allocations: 30.41 kB / 475.2 MB, free: 6.156 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003462/1.054, allocations: 75.91 kB / 475.3 MB, free: 6.082 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006898/1.055, allocations: 93.14 kB / 475.3 MB, free: 5.992 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002484/1.055, allocations: 48.05 kB / 475.4 MB, free: 5.945 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.005797/1.061, allocations: 1.21 MB / 476.6 MB, free: 4.711 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.683e-06/1.061, allocations: 0 / 476.6 MB, free: 4.711 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005523/1.066, allocations: 0.5351 MB / 477.1 MB, free: 4.176 MB / 346.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 (146): * Single equations (assignments): 143 * 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.0009611/1.068, allocations: 169.6 kB / 477.3 MB, free: 4.004 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.009661/1.077, allocations: 2.235 MB / 479.5 MB, free: 1.715 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.284e-05/1.077, allocations: 0 / 479.5 MB, free: 1.715 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005127/1.082, allocations: 1.198 MB / 480.7 MB, free: 476 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00744/1.09, allocations: 473.9 kB / 481.2 MB, free: 0 / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02881/1.119, allocations: 6.785 MB / 488 MB, free: 9.152 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006866/1.126, allocations: 2.275 MB / 490.3 MB, free: 6.844 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001882/1.128, allocations: 171.4 kB / 490.4 MB, free: 6.676 MB / 362.7 MB Notification: Performance of SimCode: time 2.224e-06/1.128, allocations: 0 / 490.4 MB, free: 6.676 MB / 362.7 MB Notification: Performance of Templates: time 0.6621/1.79, allocations: 80.68 MB / 0.5577 GB, free: 122.3 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches