Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.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_4.0.0_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_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 105.2 kB / 17.16 MB, free: 6.082 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.001103/0.001103, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.371/1.371, allocations: 222.9 MB / 241.8 MB, free: 15.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001014/0.001014, allocations: 43.2 kB / 300.6 MB, free: 6.254 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09602/0.09704, allocations: 49.45 MB / 350.1 MB, free: 4.801 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01586/0.113, allocations: 14.99 MB / 365.1 MB, free: 5.734 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009509/0.1225, allocations: 5.038 MB / 370.1 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002676/0.1252, allocations: 95.62 kB / 370.2 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1912/0.3165, allocations: 0.9236 MB / 371.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004664/0.3212, allocations: 1.138 MB / 372.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002107/0.3233, allocations: 0.8154 MB / 373.1 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006282/0.3296, allocations: 3.73 MB / 376.8 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004045/0.3337, allocations: 2.777 MB / 379.6 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002919/0.3367, allocations: 1.45 MB / 381 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003786/0.3405, allocations: 1.921 MB / 382.9 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001172/0.3417, allocations: 291.6 kB / 383.2 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002452/0.3441, allocations: 0.5075 MB / 383.7 MB, free: 8.293 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001249/0.3454, allocations: 0.9504 MB / 384.7 MB, free: 7.801 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00456/0.35, allocations: 1.842 MB / 386.5 MB, free: 6.633 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006367/0.3564, allocations: 5.238 MB / 391.8 MB, free: 3.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.3564, allocations: 0 / 391.8 MB, free: 3.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.3564, allocations: 0 / 391.8 MB, free: 3.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002109/0.3566, allocations: 4 kB / 391.8 MB, free: 3.926 MB / 302.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.01248/0.3691, allocations: 4.228 MB / 396 MB, free: 1.062 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.3692, allocations: 14.39 kB / 396 MB, free: 1.059 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003259/0.3725, allocations: 0.6208 MB / 396.6 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004908/0.3774, allocations: 2.191 MB / 398.8 MB, free: 15.18 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000239/0.3777, allocations: 246 kB / 399.1 MB, free: 15.06 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006578/0.3783, allocations: 311.5 kB / 399.4 MB, free: 14.96 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007941/0.3863, allocations: 4.048 MB / 403.4 MB, free: 11.81 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.892e-05/0.3864, allocations: 15.84 kB / 403.4 MB, free: 11.79 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003237/0.3868, allocations: 130.6 kB / 403.6 MB, free: 11.67 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001744/0.3869, allocations: 142.2 kB / 403.7 MB, free: 11.53 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006265/0.3932, allocations: 3.397 MB / 407.1 MB, free: 8.121 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02133/0.4146, allocations: 13.29 MB / 420.4 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004508/0.4191, allocations: 3.966 MB / 424.4 MB, free: 6.023 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001796/0.4209, allocations: 1.011 MB / 425.4 MB, free: 5.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005374/0.4263, allocations: 2.656 MB / 428 MB, free: 2.301 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.847e-05/0.4264, allocations: 55.48 kB / 428.1 MB, free: 2.238 MB / 334.1 MB Notification: Performance of pre-optimization done (n=108): time 2.936e-06/0.4264, allocations: 0 / 428.1 MB, free: 2.238 MB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.01345/0.4399, allocations: 5.972 MB / 434 MB, free: 12.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.67e-05/0.44, allocations: 68.72 kB / 434.1 MB, free: 12.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00397/0.444, allocations: 1.889 MB / 436 MB, free: 10.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002149/0.4442, allocations: 57.7 kB / 436.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001258/0.4455, allocations: 1.499 MB / 437.6 MB, free: 8.594 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005659/0.4461, allocations: 487.9 kB / 438 MB, free: 8.121 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006775/0.4467, allocations: 335.2 kB / 438.4 MB, free: 7.789 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.997e-05/0.4469, allocations: 301.1 kB / 438.7 MB, free: 7.492 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001368/0.4482, allocations: 0.773 MB / 439.4 MB, free: 6.719 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001779/0.45, allocations: 1.371 MB / 440.8 MB, free: 5.078 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003323/0.4534, allocations: 2.31 MB / 443.1 MB, free: 2.508 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.568e-05/0.4534, allocations: 11.94 kB / 443.1 MB, free: 2.496 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004568/0.458, allocations: 2.477 MB / 445.6 MB, free: 0 / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.164e-05/0.4581, allocations: 12.05 kB / 445.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.916e-05/0.4581, allocations: 20.66 kB / 445.6 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004075/0.4585, allocations: 122.4 kB / 445.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001785/0.4603, allocations: 483.2 kB / 446.2 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001112/0.4615, allocations: 1.316 MB / 447.5 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001873/0.4633, allocations: 112 kB / 447.6 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001888/0.4635, allocations: 83.98 kB / 447.7 MB, free: 13.73 MB / 366.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.002009/0.4656, allocations: 0.9734 MB / 448.7 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005736/0.4661, allocations: 205.4 kB / 448.9 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0038/0.47, allocations: 1.965 MB / 450.9 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.506e-05/0.47, allocations: 20 kB / 450.9 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.278e-05/0.47, allocations: 7.922 kB / 450.9 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.234e-05/0.47, allocations: 7.922 kB / 450.9 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009534/0.4796, allocations: 4.988 MB / 455.9 MB, free: 5.453 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.827e-06/0.4796, allocations: 8.25 kB / 455.9 MB, free: 5.445 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001421/0.481, allocations: 303.5 kB / 456.2 MB, free: 5.148 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003201/0.4814, allocations: 98.45 kB / 456.3 MB, free: 5.043 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001179/0.4815, allocations: 28 kB / 456.3 MB, free: 5.016 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009721/0.4825, allocations: 1.28 MB / 457.6 MB, free: 3.605 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.4825, allocations: 3.938 kB / 457.6 MB, free: 3.602 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005032/0.4875, allocations: 3.081 MB / 460.7 MB, free: 476 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001171/0.4887, allocations: 463.3 kB / 461.1 MB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006232/0.4894, allocations: 27.94 kB / 461.2 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001504/0.4909, allocations: 79.91 kB / 461.2 MB, free: 15.89 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002154/0.4911, allocations: 93.19 kB / 461.3 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001093/0.4912, allocations: 43.94 kB / 461.4 MB, free: 15.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003204/0.4944, allocations: 1.281 MB / 462.7 MB, free: 14.45 MB / 382.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4945, allocations: 4 kB / 462.7 MB, free: 14.45 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002765/0.4972, allocations: 0.5273 MB / 463.2 MB, free: 13.92 MB / 382.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.0004907/0.4977, allocations: 174.2 kB / 463.4 MB, free: 13.74 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004167/0.5019, allocations: 2.212 MB / 465.6 MB, free: 11.48 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/0.5019, allocations: 2 kB / 465.6 MB, free: 11.48 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001866/0.5038, allocations: 1.174 MB / 466.7 MB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003393/0.5072, allocations: 0.4909 MB / 467.2 MB, free: 9.766 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01352/0.5208, allocations: 7.032 MB / 474.3 MB, free: 2.676 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003795/0.5246, allocations: 2.216 MB / 476.5 MB, free: 440 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001015/0.5256, allocations: 171.4 kB / 476.6 MB, free: 272 kB / 382.1 MB Notification: Performance of SimCode: time 7.71e-07/0.5257, allocations: 4 kB / 476.7 MB, free: 268 kB / 382.1 MB Notification: Performance of Templates: time 0.2897/0.8153, allocations: 85.82 MB / 0.5493 GB, free: 147.4 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.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/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches