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.00159/0.001589, allocations: 114.6 kB / 17.28 MB, free: 6.219 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.0018/0.0018, allocations: 197.3 kB / 18.21 MB, free: 5.289 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.346/1.346, allocations: 222.9 MB / 241.9 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001089/0.001089, allocations: 48.47 kB / 300.8 MB, free: 6.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1146/0.1157, allocations: 49.44 MB / 350.2 MB, free: 4.734 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01715/0.1329, allocations: 14.99 MB / 365.2 MB, free: 5.668 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01114/0.1441, allocations: 5.007 MB / 370.2 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004061/0.1482, allocations: 91.62 kB / 370.3 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2445/0.3927, allocations: 0.9387 MB / 371.3 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005034/0.3979, allocations: 1.133 MB / 372.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002576/0.4005, allocations: 0.8053 MB / 373.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006113/0.4066, allocations: 3.675 MB / 376.9 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005152/0.4118, allocations: 3.311 MB / 380.2 MB, free: 9.398 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003135/0.4149, allocations: 1.67 MB / 381.9 MB, free: 8.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003477/0.4184, allocations: 2.052 MB / 383.9 MB, free: 7.797 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001299/0.4197, allocations: 477.5 kB / 384.4 MB, free: 7.797 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002403/0.4222, allocations: 0.6879 MB / 385.1 MB, free: 7.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001644/0.4238, allocations: 1.139 MB / 386.2 MB, free: 7.059 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003299/0.4271, allocations: 2.043 MB / 388.3 MB, free: 5.699 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004378/0.4315, allocations: 5.274 MB / 393.5 MB, free: 3.066 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.4316, allocations: 0 / 393.5 MB, free: 3.066 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.4316, allocations: 0 / 393.5 MB, free: 3.066 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001116/0.4317, allocations: 1.25 kB / 393.5 MB, free: 3.066 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.008689/0.4404, allocations: 4.233 MB / 397.8 MB, free: 204 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.4404, allocations: 9.406 kB / 397.8 MB, free: 204 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003109/0.4435, allocations: 0.6268 MB / 398.4 MB, free: 15.89 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003957/0.4475, allocations: 2.198 MB / 400.6 MB, free: 14.31 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001909/0.4477, allocations: 243.6 kB / 400.8 MB, free: 14.2 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005392/0.4483, allocations: 314.2 kB / 401.1 MB, free: 14.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008392/0.4567, allocations: 4.043 MB / 405.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.21e-05/0.4568, allocations: 7.906 kB / 405.2 MB, free: 10.15 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003307/0.4571, allocations: 127.3 kB / 405.3 MB, free: 10.03 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001571/0.4573, allocations: 150.2 kB / 405.5 MB, free: 9.879 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006386/0.4637, allocations: 3.386 MB / 408.9 MB, free: 6.484 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02187/0.4856, allocations: 13.3 MB / 422.1 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004118/0.4898, allocations: 3.962 MB / 426.1 MB, free: 4.375 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001601/0.4914, allocations: 1.007 MB / 427.1 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004631/0.496, allocations: 2.65 MB / 429.8 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.59e-05/0.4961, allocations: 51.5 kB / 429.8 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of pre-optimization done (n=108): time 2.785e-06/0.4961, allocations: 0 / 429.8 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.01267/0.5088, allocations: 6 MB / 435.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.975e-05/0.5089, allocations: 68.72 kB / 435.9 MB, free: 10.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003117/0.512, allocations: 1.889 MB / 437.8 MB, free: 8.508 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002235/0.5122, allocations: 49.7 kB / 437.8 MB, free: 8.453 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001147/0.5134, allocations: 1.499 MB / 439.3 MB, free: 6.941 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005103/0.5139, allocations: 490.8 kB / 439.8 MB, free: 6.465 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005106/0.5144, allocations: 327.2 kB / 440.1 MB, free: 6.141 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.937e-05/0.5146, allocations: 313.1 kB / 440.4 MB, free: 5.832 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001195/0.5158, allocations: 0.7652 MB / 441.2 MB, free: 5.066 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001591/0.5174, allocations: 1.371 MB / 442.6 MB, free: 3.426 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002959/0.5203, allocations: 2.315 MB / 444.9 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-05/0.5204, allocations: 11.94 kB / 444.9 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00433/0.5247, allocations: 2.474 MB / 447.4 MB, free: 14.35 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.288e-05/0.5248, allocations: 15.98 kB / 447.4 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.175e-05/0.5248, allocations: 23.98 kB / 447.4 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003736/0.5252, allocations: 122.8 kB / 447.5 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001765/0.5269, allocations: 479.2 kB / 448 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001148/0.5281, allocations: 1.406 MB / 449.4 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00171/0.5298, allocations: 115.8 kB / 449.5 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000158/0.53, allocations: 87.98 kB / 449.6 MB, free: 11.97 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.001756/0.5318, allocations: 0.9811 MB / 450.6 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004815/0.5323, allocations: 205.5 kB / 450.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003324/0.5356, allocations: 1.957 MB / 452.7 MB, free: 8.793 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-05/0.5356, allocations: 23.98 kB / 452.8 MB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.5356, allocations: 0 / 452.8 MB, free: 8.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.335e-05/0.5357, allocations: 3.984 kB / 452.8 MB, free: 8.766 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008442/0.5441, allocations: 4.989 MB / 457.7 MB, free: 3.699 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.667e-06/0.5441, allocations: 8.25 kB / 457.8 MB, free: 3.691 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001367/0.5455, allocations: 303.5 kB / 458.1 MB, free: 3.395 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003075/0.5458, allocations: 99.27 kB / 458.1 MB, free: 3.289 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001143/0.546, allocations: 35.98 kB / 458.2 MB, free: 3.254 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009784/0.547, allocations: 1.375 MB / 459.6 MB, free: 1.742 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.547, allocations: 4 kB / 459.6 MB, free: 1.738 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004677/0.5517, allocations: 3.076 MB / 462.6 MB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001075/0.5528, allocations: 462.6 kB / 463.1 MB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003283/0.5531, allocations: 27.94 kB / 463.1 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/0.5541, allocations: 79.91 kB / 463.2 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001897/0.5543, allocations: 89.12 kB / 463.3 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.084e-05/0.5544, allocations: 39.98 kB / 463.3 MB, free: 13.91 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00203/0.5565, allocations: 1.289 MB / 464.6 MB, free: 12.59 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5565, allocations: 3.938 kB / 464.6 MB, free: 12.59 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001948/0.5585, allocations: 0.5351 MB / 465.2 MB, free: 12.05 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.0003631/0.5588, allocations: 165.9 kB / 465.3 MB, free: 11.89 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005812/0.5646, allocations: 2.834 MB / 468.1 MB, free: 9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.775e-06/0.5647, allocations: 0 / 468.1 MB, free: 9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001731/0.5664, allocations: 1.173 MB / 469.3 MB, free: 7.773 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002974/0.5694, allocations: 0.5096 MB / 469.8 MB, free: 7.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01084/0.5803, allocations: 7.045 MB / 476.9 MB, free: 172 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001859/0.5822, allocations: 2.22 MB / 479.1 MB, free: 13.92 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007961/0.583, allocations: 171.4 kB / 479.3 MB, free: 13.75 MB / 398.1 MB Notification: Performance of SimCode: time 7.51e-07/0.583, allocations: 0 / 479.3 MB, free: 13.75 MB / 398.1 MB Notification: Performance of Templates: time 0.265/0.848, allocations: 85.83 MB / 0.5518 GB, free: 145.9 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