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.000794/0.000794, allocations: 91.25 kB / 16.65 MB, free: 6.59 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.0008915/0.0008916, allocations: 184.5 kB / 17.56 MB, free: 6.203 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.337/1.337, allocations: 223.3 MB / 241.6 MB, free: 14.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003979/0.0003979, allocations: 8.625 kB / 301.4 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1354, allocations: 50.41 MB / 351.8 MB, free: 3.473 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01721/0.1527, allocations: 14.28 MB / 366.1 MB, free: 5.125 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01224/0.165, allocations: 4.972 MB / 371.1 MB, free: 140 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002785/0.1678, allocations: 91.62 kB / 371.2 MB, free: 48 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2465/0.4144, allocations: 0.9206 MB / 372.1 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006247/0.4207, allocations: 1.14 MB / 373.2 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003512/0.4242, allocations: 0.8045 MB / 374 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007522/0.4318, allocations: 3.735 MB / 377.8 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004558/0.4364, allocations: 2.749 MB / 380.5 MB, free: 9.035 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003598/0.44, allocations: 1.226 MB / 381.8 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004832/0.4448, allocations: 1.642 MB / 383.4 MB, free: 8.383 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001618/0.4465, allocations: 194.6 kB / 383.6 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003532/0.45, allocations: 415.4 kB / 384 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00255/0.4526, allocations: 0.8031 MB / 384.8 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006839/0.4595, allocations: 1.685 MB / 386.5 MB, free: 6.938 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01054/0.4701, allocations: 5.859 MB / 392.3 MB, free: 3.621 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.4701, allocations: 0 / 392.3 MB, free: 3.621 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.445e-06/0.4701, allocations: 0 / 392.3 MB, free: 3.621 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002628/0.4704, allocations: 0 / 392.3 MB, free: 3.621 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.01134/0.4817, allocations: 3.59 MB / 395.9 MB, free: 1.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.4818, allocations: 9.625 kB / 395.9 MB, free: 1.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003858/0.4857, allocations: 0.626 MB / 396.6 MB, free: 0.9219 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006644/0.4923, allocations: 2.193 MB / 398.8 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003612/0.4927, allocations: 247.3 kB / 399 MB, free: 15.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001199/0.4939, allocations: 314.3 kB / 399.3 MB, free: 15.13 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01184/0.5058, allocations: 4.046 MB / 403.4 MB, free: 12 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001429/0.506, allocations: 4 kB / 403.4 MB, free: 12 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007572/0.5067, allocations: 130.8 kB / 403.5 MB, free: 11.88 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002123/0.507, allocations: 150.2 kB / 403.6 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008881/0.5158, allocations: 3.39 MB / 407 MB, free: 8.328 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03046/0.5463, allocations: 13.35 MB / 420.4 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004621/0.551, allocations: 3.955 MB / 424.3 MB, free: 6.176 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001805/0.5528, allocations: 1.019 MB / 425.3 MB, free: 5.164 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005089/0.558, allocations: 2.665 MB / 428 MB, free: 2.438 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.728e-05/0.558, allocations: 51.5 kB / 428.1 MB, free: 2.379 MB / 334.1 MB Notification: Performance of pre-optimization done (n=108): time 3.216e-06/0.558, allocations: 3.938 kB / 428.1 MB, free: 2.375 MB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.01383/0.5719, allocations: 5.989 MB / 434.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.525e-05/0.572, allocations: 68.72 kB / 434.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003677/0.5757, allocations: 1.893 MB / 436 MB, free: 10.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001101/0.5758, allocations: 45.7 kB / 436.1 MB, free: 10.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001319/0.5771, allocations: 1.501 MB / 437.6 MB, free: 8.715 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004635/0.5776, allocations: 497.1 kB / 438 MB, free: 8.234 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000223/0.5778, allocations: 149.6 kB / 438.2 MB, free: 8.082 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000106/0.5779, allocations: 301.1 kB / 438.5 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001368/0.5793, allocations: 0.773 MB / 439.3 MB, free: 7.012 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001747/0.5811, allocations: 1.38 MB / 440.6 MB, free: 5.363 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003301/0.5844, allocations: 2.314 MB / 443 MB, free: 2.789 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.768e-05/0.5844, allocations: 11.94 kB / 443 MB, free: 2.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004579/0.589, allocations: 2.473 MB / 445.4 MB, free: 292 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.871e-05/0.5891, allocations: 22.28 kB / 445.5 MB, free: 272 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.775e-05/0.5891, allocations: 20.59 kB / 445.5 MB, free: 252 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003789/0.5895, allocations: 125.8 kB / 445.6 MB, free: 120 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001815/0.5913, allocations: 483.2 kB / 446.1 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00111/0.5924, allocations: 1.311 MB / 447.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001758/0.5942, allocations: 112 kB / 447.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001694/0.5944, allocations: 87.98 kB / 447.6 MB, free: 14 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.001984/0.5964, allocations: 0.9851 MB / 448.6 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007032/0.5971, allocations: 209.4 kB / 448.8 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003952/0.6011, allocations: 1.958 MB / 450.7 MB, free: 10.82 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.451e-05/0.6011, allocations: 12 kB / 450.7 MB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.6011, allocations: 3.938 kB / 450.7 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.473e-05/0.6011, allocations: 7.969 kB / 450.8 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01081/0.612, allocations: 4.995 MB / 455.7 MB, free: 5.727 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.667e-06/0.612, allocations: 0 / 455.7 MB, free: 5.727 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001358/0.6134, allocations: 311.5 kB / 456.1 MB, free: 5.422 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003178/0.6137, allocations: 98.72 kB / 456.1 MB, free: 5.316 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001152/0.6139, allocations: 31.98 kB / 456.2 MB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001092/0.615, allocations: 1.28 MB / 457.5 MB, free: 3.875 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.615, allocations: 0 / 457.5 MB, free: 3.875 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005383/0.6204, allocations: 3.097 MB / 460.6 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00159/0.622, allocations: 466.4 kB / 461 MB, free: 252 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006244/0.6226, allocations: 31.94 kB / 461 MB, free: 220 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001395/0.624, allocations: 83.91 kB / 461.1 MB, free: 136 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001907/0.6243, allocations: 81.19 kB / 461.2 MB, free: 56 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.433e-05/0.6244, allocations: 40.06 kB / 461.2 MB, free: 16 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002835/0.6272, allocations: 1.289 MB / 462.5 MB, free: 14.7 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6272, allocations: 3.938 kB / 462.5 MB, free: 14.7 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002384/0.6296, allocations: 0.5352 MB / 463.1 MB, free: 14.16 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.0003771/0.63, allocations: 165.9 kB / 463.2 MB, free: 14 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003949/0.634, allocations: 2.208 MB / 465.4 MB, free: 11.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.634, allocations: 0 / 465.4 MB, free: 11.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00186/0.6358, allocations: 1.183 MB / 466.6 MB, free: 10.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003566/0.6394, allocations: 489.1 kB / 467.1 MB, free: 10.02 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01215/0.6516, allocations: 7.09 MB / 474.2 MB, free: 2.879 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00275/0.6544, allocations: 2.259 MB / 476.5 MB, free: 0.5859 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002139/0.6565, allocations: 0.517 MB / 477 MB, free: 68 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005965/0.6571, allocations: 155.3 kB / 477.1 MB, free: 15.92 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.6572, allocations: 0 / 477.1 MB, free: 15.92 MB / 398.1 MB Notification: Performance of Templates: time 0.05131/0.7085, allocations: 24.83 MB / 0.4902 GB, free: 7.363 MB / 414.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/jenkins/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/jenkins/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