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.001364/0.001364, allocations: 109.5 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001476/0.001476, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.3 MB / 246.9 MB, free: 10.66 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 59.91 kB / 306.9 MB, free: 0.9766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1208, allocations: 50.53 MB / 357.5 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2302/0.3511, allocations: 15.59 MB / 373 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009986/0.3611, allocations: 5.278 MB / 378.3 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003246/0.3644, allocations: 95.16 kB / 378.4 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003621/0.368, allocations: 0.9469 MB / 379.4 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004442/0.3726, allocations: 1.119 MB / 380.5 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002382/0.375, allocations: 0.8446 MB / 381.3 MB, free: 8.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005683/0.3807, allocations: 3.801 MB / 385.1 MB, free: 6.578 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003853/0.3846, allocations: 2.791 MB / 387.9 MB, free: 5.363 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00291/0.3875, allocations: 1.444 MB / 389.4 MB, free: 4.719 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004254/0.3918, allocations: 1.933 MB / 391.3 MB, free: 3.871 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001683/0.3935, allocations: 291.6 kB / 391.6 MB, free: 3.871 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002693/0.3963, allocations: 0.5275 MB / 392.1 MB, free: 3.789 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001027/0.3973, allocations: 0.9493 MB / 393.1 MB, free: 3.289 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002633/0.3999, allocations: 1.852 MB / 394.9 MB, free: 2.113 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005488/0.4054, allocations: 5.262 MB / 400.2 MB, free: 14.49 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.075e-06/0.4055, allocations: 0 / 400.2 MB, free: 14.49 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.534e-06/0.4055, allocations: 3.25 kB / 400.2 MB, free: 14.49 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002227/0.4057, allocations: 0 / 400.2 MB, free: 14.49 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.01277/0.4185, allocations: 4.265 MB / 404.4 MB, free: 11.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.213e-05/0.4186, allocations: 9.531 kB / 404.4 MB, free: 11.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003151/0.4218, allocations: 0.6276 MB / 405.1 MB, free: 11.29 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004469/0.4263, allocations: 2.202 MB / 407.3 MB, free: 9.305 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002416/0.4265, allocations: 246.2 kB / 407.5 MB, free: 9.066 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007057/0.4272, allocations: 319.8 kB / 407.8 MB, free: 8.754 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008223/0.4355, allocations: 4.037 MB / 411.9 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.963e-05/0.4356, allocations: 15.84 kB / 411.9 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003195/0.4359, allocations: 126.3 kB / 412 MB, free: 4.523 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001588/0.4361, allocations: 150.2 kB / 412.2 MB, free: 4.375 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006597/0.4427, allocations: 3.39 MB / 415.5 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02289/0.4656, allocations: 13.49 MB / 429 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004715/0.4704, allocations: 4.281 MB / 433.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001728/0.4722, allocations: 1.034 MB / 434.3 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00505/0.4772, allocations: 2.862 MB / 437.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.549e-05/0.4773, allocations: 51.5 kB / 437.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 5.02e-06/0.4773, allocations: 0 / 437.3 MB, free: 10.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=142): time 0.01238/0.4897, allocations: 5.972 MB / 443.2 MB, free: 4.172 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.665e-05/0.4898, allocations: 64.72 kB / 443.3 MB, free: 4.098 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003086/0.4929, allocations: 1.909 MB / 445.2 MB, free: 2.145 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001535/0.4931, allocations: 49.7 kB / 445.3 MB, free: 2.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001101/0.4942, allocations: 1.514 MB / 446.8 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004281/0.4946, allocations: 494.6 kB / 447.2 MB, free: 88 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005454/0.4952, allocations: 339.9 kB / 447.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.4953, allocations: 301.1 kB / 447.9 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001227/0.4965, allocations: 0.773 MB / 448.6 MB, free: 14.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001653/0.4982, allocations: 1.379 MB / 450 MB, free: 13.03 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003004/0.5012, allocations: 2.316 MB / 452.3 MB, free: 10.44 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.275e-05/0.5012, allocations: 7.938 kB / 452.3 MB, free: 10.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004252/0.5055, allocations: 2.477 MB / 454.8 MB, free: 7.938 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.094e-05/0.5055, allocations: 12 kB / 454.8 MB, free: 7.926 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.328e-05/0.5056, allocations: 20 kB / 454.9 MB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003868/0.506, allocations: 122.5 kB / 455 MB, free: 7.777 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001755/0.5077, allocations: 487.4 kB / 455.5 MB, free: 7.301 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00105/0.5088, allocations: 1.312 MB / 456.8 MB, free: 5.852 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001557/0.5103, allocations: 111.7 kB / 456.9 MB, free: 5.742 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001471/0.5105, allocations: 87.98 kB / 457 MB, free: 5.656 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.001686/0.5122, allocations: 0.9852 MB / 457.9 MB, free: 4.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003351/0.5125, allocations: 205.4 kB / 458.1 MB, free: 4.457 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003123/0.5157, allocations: 1.962 MB / 460.1 MB, free: 2.473 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.17e-05/0.5157, allocations: 12 kB / 460.1 MB, free: 2.461 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.5157, allocations: 7.938 kB / 460.1 MB, free: 2.453 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.213e-05/0.5157, allocations: 7.969 kB / 460.1 MB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007588/0.5233, allocations: 4.992 MB / 465.1 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.545e-06/0.5234, allocations: 0 / 465.1 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001367/0.5247, allocations: 311.6 kB / 465.4 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003114/0.5251, allocations: 106.7 kB / 465.5 MB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.391e-05/0.5252, allocations: 24 kB / 465.6 MB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009084/0.5261, allocations: 1.276 MB / 466.8 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/0.5261, allocations: 7.938 kB / 466.8 MB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004328/0.5304, allocations: 3.081 MB / 469.9 MB, free: 8.395 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009206/0.5314, allocations: 454.4 kB / 470.4 MB, free: 7.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002623/0.5316, allocations: 36 kB / 470.4 MB, free: 7.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009519/0.5326, allocations: 79.89 kB / 470.5 MB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001715/0.5328, allocations: 85.14 kB / 470.6 MB, free: 7.734 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-05/0.5329, allocations: 39.98 kB / 470.6 MB, free: 7.695 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001947/0.5348, allocations: 1.297 MB / 471.9 MB, free: 6.375 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.5348, allocations: 4 kB / 471.9 MB, free: 6.371 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001837/0.5367, allocations: 0.5429 MB / 472.4 MB, free: 5.828 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.0003616/0.537, allocations: 178 kB / 472.6 MB, free: 5.645 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003275/0.5403, allocations: 2.205 MB / 474.8 MB, free: 3.387 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.5404, allocations: 4.25 kB / 474.8 MB, free: 3.383 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001489/0.5418, allocations: 1.173 MB / 476 MB, free: 2.152 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002446/0.5443, allocations: 0.4995 MB / 476.5 MB, free: 1.664 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01059/0.5549, allocations: 7.069 MB / 483.6 MB, free: 10.54 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001999/0.557, allocations: 2.225 MB / 485.8 MB, free: 8.285 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008767/0.5578, allocations: 167.4 kB / 486 MB, free: 8.121 MB / 398.1 MB Notification: Performance of SimCode: time 1.022e-06/0.5579, allocations: 0 / 486 MB, free: 8.121 MB / 398.1 MB Notification: Performance of Templates: time 0.2421/0.8, allocations: 86.31 MB / 0.5589 GB, free: 134.1 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