Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008795/0.0008796, allocations: 95.56 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009668/0.000967, allocations: 207.5 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.507/1.507, allocations: 227.7 MB / 247.5 MB, free: 9.508 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000251/0.0002512, allocations: 4 kB / 308.4 MB, free: 0.5742 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1204, allocations: 51.53 MB / 359.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2785/0.3989, allocations: 14.85 MB / 374.8 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01524/0.4142, allocations: 5.192 MB / 380 MB, free: 9.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00557/0.4199, allocations: 93.34 kB / 380.1 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005312/0.4252, allocations: 0.9449 MB / 381 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006831/0.4321, allocations: 1.1 MB / 382.1 MB, free: 8.844 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003161/0.4353, allocations: 0.8601 MB / 383 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007749/0.4431, allocations: 3.785 MB / 386.8 MB, free: 6.723 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006104/0.4492, allocations: 2.753 MB / 389.5 MB, free: 5.527 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003388/0.4526, allocations: 1.233 MB / 390.7 MB, free: 4.988 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004283/0.4569, allocations: 1.649 MB / 392.4 MB, free: 4.305 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001626/0.4586, allocations: 190.6 kB / 392.6 MB, free: 4.305 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003367/0.462, allocations: 439.4 kB / 393 MB, free: 4.223 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002292/0.4643, allocations: 0.8062 MB / 393.8 MB, free: 3.832 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005258/0.4696, allocations: 1.688 MB / 395.5 MB, free: 2.746 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008227/0.4778, allocations: 5.109 MB / 400.6 MB, free: 15.25 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.4779, allocations: 1.438 kB / 400.6 MB, free: 15.25 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.939e-06/0.4779, allocations: 0 / 400.6 MB, free: 15.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004066/0.4783, allocations: 3.938 kB / 400.6 MB, free: 15.24 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.01537/0.4937, allocations: 3.613 MB / 404.2 MB, free: 12.83 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.064e-05/0.4938, allocations: 10.19 kB / 404.2 MB, free: 12.83 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004544/0.4983, allocations: 0.6283 MB / 404.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006059/0.5044, allocations: 2.208 MB / 407.1 MB, free: 10.94 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000376/0.5048, allocations: 246.8 kB / 407.3 MB, free: 10.74 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00147/0.5063, allocations: 314.4 kB / 407.6 MB, free: 10.44 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00987/0.5162, allocations: 4.042 MB / 411.7 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.56e-05/0.5163, allocations: 3.906 kB / 411.7 MB, free: 6.332 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003332/0.5167, allocations: 130.7 kB / 411.8 MB, free: 6.207 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001594/0.5168, allocations: 146.2 kB / 411.9 MB, free: 6.062 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007424/0.5243, allocations: 3.397 MB / 415.3 MB, free: 2.656 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02398/0.5483, allocations: 13.55 MB / 428.9 MB, free: 4.719 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004574/0.5529, allocations: 4.285 MB / 433.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001885/0.5548, allocations: 1.035 MB / 434.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005412/0.5603, allocations: 2.869 MB / 437.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.601e-05/0.5603, allocations: 43.5 kB / 437.1 MB, free: 11.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 4.168e-06/0.5604, allocations: 7.922 kB / 437.1 MB, free: 11.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=142): time 0.01289/0.5733, allocations: 5.995 MB / 443.1 MB, free: 5.754 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.93e-05/0.5734, allocations: 68.72 kB / 443.2 MB, free: 5.676 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004082/0.5774, allocations: 1.902 MB / 445.1 MB, free: 3.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002274/0.5777, allocations: 49.7 kB / 445.1 MB, free: 3.676 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001195/0.5789, allocations: 1.518 MB / 446.7 MB, free: 2.145 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006026/0.5795, allocations: 495.4 kB / 447.1 MB, free: 1.664 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003194/0.5799, allocations: 141.6 kB / 447.3 MB, free: 1.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.58, allocations: 309.1 kB / 447.6 MB, free: 1.215 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001445/0.5814, allocations: 0.7652 MB / 448.3 MB, free: 456 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001837/0.5833, allocations: 1.383 MB / 449.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003412/0.5867, allocations: 2.32 MB / 452 MB, free: 12.2 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.835e-05/0.5867, allocations: 7.938 kB / 452.1 MB, free: 12.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.00471/0.5915, allocations: 2.47 MB / 454.5 MB, free: 9.707 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.985e-05/0.5915, allocations: 16 kB / 454.5 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.499e-05/0.5916, allocations: 19.94 kB / 454.6 MB, free: 9.672 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004052/0.592, allocations: 130.8 kB / 454.7 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001854/0.5938, allocations: 479.2 kB / 455.2 MB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001159/0.595, allocations: 1.319 MB / 456.5 MB, free: 7.609 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001927/0.597, allocations: 116 kB / 456.6 MB, free: 7.496 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001897/0.5972, allocations: 84 kB / 456.7 MB, free: 7.414 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.002097/0.5993, allocations: 0.9812 MB / 457.7 MB, free: 6.422 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000586/0.5999, allocations: 205.4 kB / 457.9 MB, free: 6.219 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003898/0.6038, allocations: 1.973 MB / 459.8 MB, free: 4.227 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.879e-05/0.6038, allocations: 19.94 kB / 459.8 MB, free: 4.207 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.6038, allocations: 3.938 kB / 459.9 MB, free: 4.203 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.427e-05/0.6038, allocations: 7.969 kB / 459.9 MB, free: 4.195 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01128/0.6151, allocations: 5.003 MB / 464.9 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.374e-05/0.6152, allocations: 4 kB / 464.9 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001379/0.6166, allocations: 303.5 kB / 465.2 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000352/0.6169, allocations: 106.6 kB / 465.3 MB, free: 14.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001329/0.6171, allocations: 24 kB / 465.3 MB, free: 14.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001161/0.6183, allocations: 1.276 MB / 466.6 MB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.6183, allocations: 0 / 466.6 MB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005358/0.6237, allocations: 3.085 MB / 469.6 MB, free: 10.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001553/0.6252, allocations: 466.4 kB / 470.1 MB, free: 9.664 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008885/0.6262, allocations: 40 kB / 470.1 MB, free: 9.625 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001702/0.6279, allocations: 75.91 kB / 470.2 MB, free: 9.551 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000226/0.6281, allocations: 89.19 kB / 470.3 MB, free: 9.465 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001076/0.6282, allocations: 35.98 kB / 470.3 MB, free: 9.43 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003603/0.6319, allocations: 1.301 MB / 471.6 MB, free: 8.105 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6319, allocations: 7.938 kB / 471.6 MB, free: 8.098 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003661/0.6355, allocations: 0.539 MB / 472.2 MB, free: 7.559 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.0007092/0.6363, allocations: 185.5 kB / 472.4 MB, free: 7.367 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004624/0.6409, allocations: 2.216 MB / 474.6 MB, free: 5.098 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.267e-06/0.6409, allocations: 0 / 474.6 MB, free: 5.098 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002067/0.643, allocations: 1.175 MB / 475.8 MB, free: 3.867 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005128/0.6482, allocations: 0.4966 MB / 476.3 MB, free: 3.379 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01538/0.6636, allocations: 7.133 MB / 483.4 MB, free: 12.19 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00343/0.6671, allocations: 2.217 MB / 485.6 MB, free: 9.938 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001053/0.6681, allocations: 175.4 kB / 485.8 MB, free: 9.766 MB / 398.1 MB Notification: Performance of SimCode: time 1.904e-06/0.6682, allocations: 0 / 485.8 MB, free: 9.766 MB / 398.1 MB Notification: Performance of Templates: time 0.369/1.037, allocations: 85.84 MB / 0.5582 GB, free: 136.8 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches