Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_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.00138/0.00138, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001447/0.001446, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.44/1.44, allocations: 227.7 MB / 247.7 MB, free: 10.31 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 70.09 kB / 307.9 MB, free: 492 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1414/0.1433, allocations: 50.53 MB / 358.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.2729/0.4163, allocations: 15.79 MB / 374.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0115/0.4278, allocations: 5.343 MB / 379.6 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003456/0.4313, allocations: 101.8 kB / 379.7 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003568/0.4349, allocations: 1.075 MB / 380.8 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004791/0.4397, allocations: 1.243 MB / 382 MB, free: 8.566 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002766/0.4425, allocations: 0.9131 MB / 382.9 MB, free: 8.109 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005313/0.4478, allocations: 3.623 MB / 386.5 MB, free: 6.297 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005032/0.4529, allocations: 3.33 MB / 389.9 MB, free: 4.887 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003365/0.4563, allocations: 1.723 MB / 391.6 MB, free: 4.059 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003926/0.4602, allocations: 2.119 MB / 393.7 MB, free: 3.086 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001533/0.4618, allocations: 479.9 kB / 394.2 MB, free: 3.086 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003187/0.465, allocations: 0.7156 MB / 394.9 MB, free: 3.004 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001532/0.4665, allocations: 1.142 MB / 396 MB, free: 2.316 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0032/0.4697, allocations: 2.045 MB / 398.1 MB, free: 0.957 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007401/0.4771, allocations: 6.249 MB / 404.3 MB, free: 12.54 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.245e-06/0.4772, allocations: 4 kB / 404.3 MB, free: 12.53 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4772, allocations: 0 / 404.3 MB, free: 12.53 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001503/0.4773, allocations: 0 / 404.3 MB, free: 12.53 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.01135/0.4887, allocations: 4.267 MB / 408.6 MB, free: 9.039 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.4888, allocations: 8.031 kB / 408.6 MB, free: 9.031 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003042/0.4918, allocations: 0.6231 MB / 409.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004543/0.4964, allocations: 2.234 MB / 411.5 MB, free: 6.148 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002525/0.4967, allocations: 241.5 kB / 411.7 MB, free: 5.914 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005852/0.4972, allocations: 314.6 kB / 412 MB, free: 5.609 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007981/0.5052, allocations: 4.045 MB / 416.1 MB, free: 1.504 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-05/0.5053, allocations: 0 / 416.1 MB, free: 1.504 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003079/0.5057, allocations: 130.6 kB / 416.2 MB, free: 1.379 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001778/0.5058, allocations: 142.2 kB / 416.3 MB, free: 1.238 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006595/0.5124, allocations: 3.389 MB / 419.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02295/0.5354, allocations: 13.51 MB / 433.2 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005146/0.5406, allocations: 4.267 MB / 437.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001845/0.5425, allocations: 1.042 MB / 438.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005352/0.5479, allocations: 2.855 MB / 441.4 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.649e-05/0.5479, allocations: 47.5 kB / 441.4 MB, free: 7.082 MB / 350.1 MB Notification: Performance of pre-optimization done (n=108): time 7.734e-05/0.548, allocations: 0 / 441.4 MB, free: 7.082 MB / 350.1 MB Notification: Performance of matching and sorting (n=142): time 0.0131/0.5611, allocations: 5.992 MB / 447.4 MB, free: 1.012 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.568e-05/0.5612, allocations: 64.72 kB / 447.5 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003311/0.5645, allocations: 1.905 MB / 449.4 MB, free: 14.99 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001236/0.5647, allocations: 49.7 kB / 449.4 MB, free: 14.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001453/0.5661, allocations: 1.518 MB / 451 MB, free: 13.4 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005021/0.5666, allocations: 488.6 kB / 451.4 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005383/0.5672, allocations: 335.2 kB / 451.8 MB, free: 12.6 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.5673, allocations: 305.1 kB / 452.1 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00138/0.5687, allocations: 0.7691 MB / 452.8 MB, free: 11.53 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001981/0.5707, allocations: 1.375 MB / 454.2 MB, free: 9.883 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003389/0.5741, allocations: 2.312 MB / 456.5 MB, free: 7.301 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.277e-05/0.5742, allocations: 11.94 kB / 456.5 MB, free: 7.289 MB / 366.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004556/0.5787, allocations: 2.473 MB / 459 MB, free: 4.797 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.439e-05/0.5788, allocations: 16.75 kB / 459 MB, free: 4.781 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.72e-05/0.5788, allocations: 16 kB / 459 MB, free: 4.766 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003732/0.5792, allocations: 122.5 kB / 459.2 MB, free: 4.637 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001884/0.5811, allocations: 483.2 kB / 459.6 MB, free: 4.164 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001409/0.5825, allocations: 1.417 MB / 461 MB, free: 2.602 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001601/0.5841, allocations: 107.8 kB / 461.2 MB, free: 2.496 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001484/0.5843, allocations: 87.98 kB / 461.2 MB, free: 2.41 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.001995/0.5863, allocations: 1.001 MB / 462.2 MB, free: 1.398 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004297/0.5867, allocations: 201.5 kB / 462.4 MB, free: 1.199 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003737/0.5905, allocations: 1.965 MB / 464.4 MB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-05/0.5905, allocations: 12 kB / 464.4 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.387e-05/0.5905, allocations: 7.984 kB / 464.4 MB, free: 15.2 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.536e-05/0.5905, allocations: 7.969 kB / 464.4 MB, free: 15.19 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008925/0.5995, allocations: 4.994 MB / 469.4 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/0.5995, allocations: 4 kB / 469.4 MB, free: 10.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001481/0.601, allocations: 315.8 kB / 469.7 MB, free: 9.809 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003125/0.6013, allocations: 94.52 kB / 469.8 MB, free: 9.707 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.62e-05/0.6014, allocations: 32 kB / 469.9 MB, free: 9.676 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001284/0.6027, allocations: 1.371 MB / 471.2 MB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.6027, allocations: 8.156 kB / 471.2 MB, free: 8.16 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00501/0.6077, allocations: 3.085 MB / 474.3 MB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001037/0.6088, allocations: 454.5 kB / 474.8 MB, free: 4.559 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003033/0.6091, allocations: 24 kB / 474.8 MB, free: 4.535 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.6101, allocations: 83.97 kB / 474.9 MB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000186/0.6103, allocations: 85.12 kB / 475 MB, free: 4.371 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.609e-05/0.6104, allocations: 40 kB / 475 MB, free: 4.332 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002205/0.6126, allocations: 1.294 MB / 476.3 MB, free: 3.016 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.008e-06/0.6127, allocations: 0 / 476.3 MB, free: 3.016 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001842/0.6145, allocations: 0.5546 MB / 476.8 MB, free: 2.461 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.0003791/0.6149, allocations: 170.1 kB / 477 MB, free: 2.285 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006076/0.621, allocations: 2.83 MB / 479.8 MB, free: 15.4 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.621, allocations: 0 / 479.8 MB, free: 15.4 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0018/0.6228, allocations: 1.182 MB / 481 MB, free: 14.16 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002574/0.6254, allocations: 0.5275 MB / 481.5 MB, free: 13.64 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0101/0.6355, allocations: 5.702 MB / 487.2 MB, free: 7.887 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002263/0.6378, allocations: 2.221 MB / 489.5 MB, free: 5.637 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000746/0.6386, allocations: 167.4 kB / 489.6 MB, free: 5.473 MB / 398.1 MB Notification: Performance of SimCode: time 7.11e-07/0.6386, allocations: 3.938 kB / 489.6 MB, free: 5.469 MB / 398.1 MB Notification: Performance of Templates: time 0.2664/0.905, allocations: 86.34 MB / 0.5625 GB, free: 132.7 MB / 446.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches