Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.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_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_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_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001563/0.001563, allocations: 108.4 kB / 18.36 MB, free: 4.762 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.001553/0.001553, allocations: 191 kB / 19.29 MB, free: 3.836 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.344/1.344, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.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.001174/0.001174, allocations: 51.92 kB / 282.1 MB, free: 2.457 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08231/0.08349, allocations: 46.63 MB / 328.7 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01568/0.09921, allocations: 15.11 MB / 343.9 MB, free: 4.562 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01051/0.1098, allocations: 5.109 MB / 349 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003009/0.1128, allocations: 87.62 kB / 349 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002799/0.1157, allocations: 1.056 MB / 350.1 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003444/0.1191, allocations: 1.262 MB / 351.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001828/0.121, allocations: 0.9039 MB / 352.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003727/0.1247, allocations: 3.629 MB / 355.9 MB, free: 8.469 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00327/0.128, allocations: 3.254 MB / 359.2 MB, free: 5.148 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002104/0.1301, allocations: 1.713 MB / 360.9 MB, free: 3.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002256/0.1324, allocations: 2.051 MB / 362.9 MB, free: 1.371 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005055/0.1329, allocations: 476 kB / 363.4 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001088/0.134, allocations: 0.6872 MB / 364.1 MB, free: 224 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009121/0.1349, allocations: 1.137 MB / 365.2 MB, free: 15.08 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001755/0.1367, allocations: 2.034 MB / 367.2 MB, free: 13.04 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005139/0.1418, allocations: 6.25 MB / 373.5 MB, free: 6.766 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1419, allocations: 7.938 kB / 373.5 MB, free: 6.758 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1419, allocations: 0 / 373.5 MB, free: 6.758 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.645e-05/0.142, allocations: 4 kB / 373.5 MB, free: 6.754 MB / 318.1 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.008684/0.1507, allocations: 4.23 MB / 377.7 MB, free: 2.449 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.1507, allocations: 8.031 kB / 377.7 MB, free: 2.441 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002578/0.1533, allocations: 0.6172 MB / 378.4 MB, free: 1.82 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1593/0.3126, allocations: 2.139 MB / 380.5 MB, free: 49.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002856/0.3129, allocations: 241.1 kB / 380.7 MB, free: 49.56 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001133/0.314, allocations: 307.3 kB / 381 MB, free: 49.56 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009472/0.3235, allocations: 4.042 MB / 385.1 MB, free: 48.12 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.89e-05/0.3236, allocations: 5.562 kB / 385.1 MB, free: 48.12 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002432/0.3239, allocations: 125.4 kB / 385.2 MB, free: 48.03 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001398/0.324, allocations: 148.6 kB / 385.3 MB, free: 48.01 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005296/0.3293, allocations: 3.374 MB / 388.7 MB, free: 46.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01542/0.3447, allocations: 13.17 MB / 401.9 MB, free: 37.89 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003166/0.3479, allocations: 3.963 MB / 405.9 MB, free: 34.26 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00134/0.3493, allocations: 1.002 MB / 406.9 MB, free: 33.79 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003707/0.353, allocations: 2.652 MB / 409.5 MB, free: 31.8 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.3531, allocations: 48.98 kB / 409.6 MB, free: 31.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=108): time 2.355e-06/0.3531, allocations: 0 / 409.6 MB, free: 31.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=142): time 0.008939/0.362, allocations: 5.998 MB / 415.6 MB, free: 25.7 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.926e-05/0.3621, allocations: 68.72 kB / 415.6 MB, free: 25.62 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002074/0.3642, allocations: 1.893 MB / 417.5 MB, free: 23.68 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.538e-05/0.3642, allocations: 49.42 kB / 417.6 MB, free: 23.63 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005753/0.3648, allocations: 1.508 MB / 419.1 MB, free: 22.11 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002219/0.3651, allocations: 488.1 kB / 419.6 MB, free: 21.64 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004128/0.3655, allocations: 335.2 kB / 419.9 MB, free: 21.31 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.916e-05/0.3655, allocations: 301.1 kB / 420.2 MB, free: 21.01 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009022/0.3664, allocations: 0.7652 MB / 420.9 MB, free: 20.25 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001101/0.3675, allocations: 1.375 MB / 422.3 MB, free: 18.6 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002126/0.3697, allocations: 2.314 MB / 424.6 MB, free: 16.02 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.755e-06/0.3697, allocations: 4 kB / 424.6 MB, free: 16.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002966/0.3727, allocations: 2.479 MB / 427.1 MB, free: 13.52 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/0.3727, allocations: 16 kB / 427.1 MB, free: 13.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.8e-05/0.3727, allocations: 20 kB / 427.1 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003029/0.373, allocations: 126.9 kB / 427.3 MB, free: 13.35 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001573/0.3746, allocations: 491.2 kB / 427.7 MB, free: 12.87 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007062/0.3753, allocations: 1.402 MB / 429.2 MB, free: 11.33 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001147/0.3765, allocations: 120 kB / 429.3 MB, free: 11.21 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001057/0.3766, allocations: 79.98 kB / 429.3 MB, free: 11.14 MB / 318.1 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 (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001217/0.3778, allocations: 0.9851 MB / 430.3 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002211/0.3781, allocations: 201.5 kB / 430.5 MB, free: 9.941 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002526/0.3806, allocations: 1.964 MB / 432.5 MB, free: 7.961 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.3806, allocations: 12 kB / 432.5 MB, free: 7.949 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.3806, allocations: 0 / 432.5 MB, free: 7.949 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.3806, allocations: 15.92 kB / 432.5 MB, free: 7.934 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005805/0.3864, allocations: 4.98 MB / 437.5 MB, free: 2.883 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.3865, allocations: 4 kB / 437.5 MB, free: 2.879 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001196/0.3877, allocations: 323.8 kB / 437.8 MB, free: 2.562 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000227/0.3879, allocations: 94.52 kB / 437.9 MB, free: 2.461 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.131e-05/0.388, allocations: 28 kB / 437.9 MB, free: 2.434 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005758/0.3886, allocations: 1.38 MB / 439.3 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.856e-06/0.3886, allocations: 7.938 kB / 439.3 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003832/0.3924, allocations: 3.082 MB / 442.4 MB, free: 13.76 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007998/0.3932, allocations: 462.2 kB / 442.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002165/0.3935, allocations: 28 kB / 442.9 MB, free: 13.26 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008755/0.3943, allocations: 79.84 kB / 443 MB, free: 13.18 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001561/0.3945, allocations: 97.19 kB / 443.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.118e-05/0.3946, allocations: 36 kB / 443.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001647/0.3963, allocations: 1.285 MB / 444.4 MB, free: 11.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.5e-07/0.3963, allocations: 0 / 444.4 MB, free: 11.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001426/0.3977, allocations: 0.5273 MB / 444.9 MB, free: 11.22 MB / 334.1 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 (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.000295/0.398, allocations: 164.6 kB / 445.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002993/0.401, allocations: 2.22 MB / 447.3 MB, free: 8.785 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.401, allocations: 0 / 447.3 MB, free: 8.785 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001449/0.4025, allocations: 1.175 MB / 448.5 MB, free: 7.559 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001852/0.4043, allocations: 0.5159 MB / 449 MB, free: 7.043 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007938/0.4123, allocations: 5.575 MB / 454.6 MB, free: 1.426 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001784/0.4141, allocations: 2.255 MB / 456.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001339/0.4154, allocations: 0.5132 MB / 457.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004123/0.4158, allocations: 147.4 kB / 457.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of SimCode: time 4.4e-07/0.4159, allocations: 0 / 457.5 MB, free: 14.48 MB / 350.1 MB Notification: Performance of Templates: time 0.04627/0.4621, allocations: 26 MB / 483.5 MB, free: 4.473 MB / 366.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches