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.0008591/0.0008592, allocations: 96.48 kB / 17.35 MB, free: 6.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001048/0.001048, allocations: 205.5 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 227.7 MB / 246.8 MB, free: 11.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002595/0.0002598, allocations: 8 kB / 307.8 MB, free: 0.7969 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1142, allocations: 51.51 MB / 359.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2154/0.3297, allocations: 14.86 MB / 374.1 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0104/0.3401, allocations: 5.202 MB / 379.3 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003301/0.3435, allocations: 93.59 kB / 379.4 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00301/0.3465, allocations: 0.9391 MB / 380.4 MB, free: 9.184 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003528/0.35, allocations: 1.107 MB / 381.5 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001917/0.352, allocations: 0.8463 MB / 382.3 MB, free: 8.477 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005477/0.3575, allocations: 3.794 MB / 386.1 MB, free: 6.797 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00409/0.3616, allocations: 2.763 MB / 388.9 MB, free: 5.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002827/0.3644, allocations: 1.224 MB / 390.1 MB, free: 5.059 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002605/0.3671, allocations: 1.652 MB / 391.8 MB, free: 4.375 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004164/0.3675, allocations: 191.2 kB / 391.9 MB, free: 4.375 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001503/0.369, allocations: 437.2 kB / 392.4 MB, free: 4.293 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009061/0.3699, allocations: 0.804 MB / 393.2 MB, free: 3.906 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001843/0.3718, allocations: 1.691 MB / 394.9 MB, free: 2.816 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005192/0.377, allocations: 5.891 MB / 400.8 MB, free: 14.77 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.377, allocations: 0 / 400.8 MB, free: 14.77 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.428e-06/0.377, allocations: 1.094 kB / 400.8 MB, free: 14.77 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.533e-05/0.3771, allocations: 3.938 kB / 400.8 MB, free: 14.77 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.01043/0.3875, allocations: 3.61 MB / 404.4 MB, free: 12.36 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.029e-05/0.3876, allocations: 10.81 kB / 404.4 MB, free: 12.36 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003831/0.3915, allocations: 0.6312 MB / 405 MB, free: 12.05 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004547/0.396, allocations: 2.205 MB / 407.2 MB, free: 10.13 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002163/0.3963, allocations: 241.5 kB / 407.5 MB, free: 9.895 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005249/0.3968, allocations: 319.9 kB / 407.8 MB, free: 9.582 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007672/0.4045, allocations: 4.045 MB / 411.8 MB, free: 5.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.878e-05/0.4046, allocations: 7.906 kB / 411.8 MB, free: 5.473 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002918/0.4049, allocations: 128 kB / 411.9 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001549/0.4051, allocations: 146.2 kB / 412.1 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006657/0.4117, allocations: 3.393 MB / 415.5 MB, free: 1.801 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02229/0.4341, allocations: 13.54 MB / 429 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004368/0.4385, allocations: 4.289 MB / 433.3 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001622/0.4401, allocations: 1.047 MB / 434.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004217/0.4444, allocations: 2.855 MB / 437.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.336e-05/0.4444, allocations: 51.5 kB / 437.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 2.655e-06/0.4444, allocations: 0 / 437.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=142): time 0.01105/0.4555, allocations: 5.999 MB / 443.3 MB, free: 4.898 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.849e-05/0.4555, allocations: 64.72 kB / 443.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002582/0.4581, allocations: 1.902 MB / 445.2 MB, free: 2.879 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.066e-05/0.4582, allocations: 49.7 kB / 445.3 MB, free: 2.824 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009955/0.4592, allocations: 1.522 MB / 446.8 MB, free: 1.289 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003537/0.4596, allocations: 488.4 kB / 447.3 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000197/0.4598, allocations: 149.6 kB / 447.4 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.463e-05/0.4599, allocations: 301.1 kB / 447.7 MB, free: 376 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001173/0.4611, allocations: 0.7741 MB / 448.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001598/0.4627, allocations: 1.383 MB / 449.9 MB, free: 13.94 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002935/0.4656, allocations: 2.316 MB / 452.2 MB, free: 11.36 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.025e-05/0.4656, allocations: 7.938 kB / 452.2 MB, free: 11.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003879/0.4695, allocations: 2.478 MB / 454.7 MB, free: 8.852 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.527e-05/0.4696, allocations: 12 kB / 454.7 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.676e-05/0.4696, allocations: 23.94 kB / 454.7 MB, free: 8.816 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003981/0.47, allocations: 118.5 kB / 454.8 MB, free: 8.691 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001835/0.4719, allocations: 487.3 kB / 455.3 MB, free: 8.215 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001116/0.473, allocations: 1.308 MB / 456.6 MB, free: 6.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001555/0.4746, allocations: 115.8 kB / 456.7 MB, free: 6.656 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001225/0.4747, allocations: 80 kB / 456.8 MB, free: 6.578 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.001822/0.4765, allocations: 0.9891 MB / 457.8 MB, free: 5.578 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003427/0.4769, allocations: 205.4 kB / 458 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003259/0.4801, allocations: 1.977 MB / 460 MB, free: 3.379 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.279e-05/0.4802, allocations: 19.94 kB / 460 MB, free: 3.359 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.4802, allocations: 3.938 kB / 460 MB, free: 3.355 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.476e-05/0.4802, allocations: 7.969 kB / 460 MB, free: 3.348 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007544/0.4877, allocations: 5.004 MB / 465 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/0.4878, allocations: 4 kB / 465 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001361/0.4891, allocations: 311.8 kB / 465.3 MB, free: 13.96 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003206/0.4895, allocations: 98.45 kB / 465.4 MB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.504e-05/0.4896, allocations: 28 kB / 465.4 MB, free: 13.83 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009834/0.4906, allocations: 1.28 MB / 466.7 MB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/0.4906, allocations: 4 kB / 466.7 MB, free: 12.42 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004956/0.4955, allocations: 3.089 MB / 469.8 MB, free: 9.277 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00155/0.4971, allocations: 462.4 kB / 470.3 MB, free: 8.805 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005667/0.4977, allocations: 27.94 kB / 470.3 MB, free: 8.777 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001142/0.4989, allocations: 79.91 kB / 470.4 MB, free: 8.699 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001801/0.4991, allocations: 89.25 kB / 470.4 MB, free: 8.613 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.039e-05/0.4991, allocations: 43.98 kB / 470.5 MB, free: 8.57 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002373/0.5015, allocations: 1.294 MB / 471.8 MB, free: 7.254 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.5015, allocations: 0 / 471.8 MB, free: 7.254 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002056/0.5036, allocations: 0.5429 MB / 472.3 MB, free: 6.711 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.0004336/0.504, allocations: 181.3 kB / 472.5 MB, free: 6.523 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003742/0.5078, allocations: 2.216 MB / 474.7 MB, free: 4.254 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.055e-06/0.5078, allocations: 0 / 474.7 MB, free: 4.254 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001657/0.5095, allocations: 1.178 MB / 475.9 MB, free: 3.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003121/0.5126, allocations: 0.5016 MB / 476.4 MB, free: 2.527 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01142/0.524, allocations: 7.096 MB / 483.5 MB, free: 11.38 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002355/0.5264, allocations: 2.264 MB / 485.8 MB, free: 9.078 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001926/0.5284, allocations: 0.5172 MB / 486.3 MB, free: 8.559 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005671/0.5289, allocations: 159.4 kB / 486.4 MB, free: 8.402 MB / 398.1 MB Notification: Performance of SimCode: time 8.82e-07/0.5289, allocations: 0 / 486.4 MB, free: 8.402 MB / 398.1 MB Notification: Performance of Templates: time 0.04877/0.5777, allocations: 25.21 MB / 0.4996 GB, free: 15.43 MB / 430.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/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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches