Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001305/0.001305, allocations: 120.9 kB / 17.83 MB, free: 5.051 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001318/0.001318, allocations: 208.3 kB / 18.79 MB, free: 4.102 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.429/1.429, allocations: 230.4 MB / 250 MB, free: 8.98 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.00205/0.00205, allocations: 67.83 kB / 367.4 MB, free: 7.008 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2635/0.2655, allocations: 53.31 MB / 420.7 MB, free: 8.336 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01454/0.28, allocations: 10.98 MB / 431.7 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007438/0.2875, allocations: 3.684 MB / 435.3 MB, free: 9.609 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001727/0.2892, allocations: 67.69 kB / 435.4 MB, free: 9.543 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002081/0.2913, allocations: 0.8889 MB / 436.3 MB, free: 8.652 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002934/0.2942, allocations: 0.9009 MB / 437.2 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001115/0.2953, allocations: 471.2 kB / 437.7 MB, free: 7.285 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003847/0.2992, allocations: 2.942 MB / 440.6 MB, free: 4.328 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002649/0.3018, allocations: 1.978 MB / 442.6 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002342/0.3042, allocations: 1.39 MB / 444 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00277/0.3069, allocations: 1.798 MB / 445.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005586/0.3075, allocations: 372 kB / 446.1 MB, free: 14.72 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009515/0.3085, allocations: 483.8 kB / 446.6 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001038/0.3095, allocations: 1.087 MB / 447.7 MB, free: 13.16 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001868/0.3114, allocations: 1.672 MB / 449.4 MB, free: 11.48 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005661/0.317, allocations: 4.908 MB / 454.3 MB, free: 6.555 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.317, allocations: 0 / 454.3 MB, free: 6.555 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.297e-06/0.317, allocations: 4 kB / 454.3 MB, free: 6.551 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.279e-05/0.3171, allocations: 0 / 454.3 MB, free: 6.551 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.007085/0.3242, allocations: 3.487 MB / 457.8 MB, free: 2.996 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.3243, allocations: 8.031 kB / 457.8 MB, free: 2.988 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009407/0.3252, allocations: 362.8 kB / 458.1 MB, free: 2.633 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00321/0.3284, allocations: 1.84 MB / 460 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001665/0.3286, allocations: 193.4 kB / 460.2 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003913/0.329, allocations: 255.9 kB / 460.4 MB, free: 304 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005883/0.3348, allocations: 3.279 MB / 463.7 MB, free: 12.94 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-05/0.3349, allocations: 7.953 kB / 463.7 MB, free: 12.93 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002195/0.3351, allocations: 104 kB / 463.8 MB, free: 12.83 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001401/0.3353, allocations: 124.9 kB / 463.9 MB, free: 12.7 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004794/0.3401, allocations: 2.748 MB / 466.7 MB, free: 9.941 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01629/0.3564, allocations: 10.41 MB / 477.1 MB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001918/0.3583, allocations: 1.307 MB / 478.4 MB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001213/0.3595, allocations: 0.7151 MB / 479.1 MB, free: 13.08 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003166/0.3598, allocations: 199.1 kB / 479.3 MB, free: 12.85 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.656e-05/0.3598, allocations: 47.56 kB / 479.3 MB, free: 12.8 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 2.615e-06/0.3598, allocations: 0 / 479.3 MB, free: 12.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.01514/0.375, allocations: 6.942 MB / 486.3 MB, free: 5.746 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.064e-05/0.375, allocations: 64.41 kB / 486.3 MB, free: 5.672 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002698/0.3777, allocations: 1.794 MB / 488.1 MB, free: 3.879 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.511e-05/0.3778, allocations: 45.7 kB / 488.2 MB, free: 3.828 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001029/0.3789, allocations: 1.306 MB / 489.5 MB, free: 2.508 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003923/0.3792, allocations: 452.1 kB / 489.9 MB, free: 2.062 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005007/0.3797, allocations: 295.5 kB / 490.2 MB, free: 1.766 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.3799, allocations: 309.1 kB / 490.5 MB, free: 1.461 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001241/0.3811, allocations: 0.773 MB / 491.3 MB, free: 0.6875 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001684/0.3828, allocations: 1.288 MB / 492.6 MB, free: 15.17 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003087/0.3859, allocations: 2.222 MB / 494.8 MB, free: 12.72 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.988e-06/0.3859, allocations: 4 kB / 494.8 MB, free: 12.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004278/0.3902, allocations: 2.479 MB / 497.3 MB, free: 10.21 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.005e-05/0.3902, allocations: 12 kB / 497.3 MB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.409e-05/0.3902, allocations: 20 kB / 497.3 MB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006917/0.3909, allocations: 243.6 kB / 497.5 MB, free: 9.934 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0015/0.3924, allocations: 419.3 kB / 498 MB, free: 9.523 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002959/0.3954, allocations: 3.242 MB / 0.4894 GB, free: 5.988 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001414/0.3968, allocations: 131.8 kB / 0.4896 GB, free: 5.859 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001315/0.3969, allocations: 71.98 kB / 0.4896 GB, free: 5.789 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001354/0.3983, allocations: 0.8134 MB / 0.4904 GB, free: 4.965 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003356/0.3986, allocations: 190.8 kB / 0.4906 GB, free: 4.777 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00353/0.4021, allocations: 2.05 MB / 0.4926 GB, free: 2.707 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.12e-05/0.4022, allocations: 12 kB / 0.4926 GB, free: 2.695 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.4022, allocations: 0 / 0.4926 GB, free: 2.695 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.088e-05/0.4022, allocations: 3.984 kB / 0.4926 GB, free: 2.691 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007966/0.4101, allocations: 4.741 MB / 0.4973 GB, free: 13.85 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/0.4101, allocations: 4 kB / 0.4973 GB, free: 13.85 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001124/0.4113, allocations: 259.6 kB / 0.4975 GB, free: 13.59 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006077/0.4119, allocations: 203.5 kB / 0.4977 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.262e-05/0.412, allocations: 27.98 kB / 0.4977 GB, free: 13.36 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003078/0.415, allocations: 3.219 MB / 0.5009 GB, free: 9.855 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.181e-06/0.415, allocations: 7.938 kB / 0.5009 GB, free: 9.848 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005084/0.4201, allocations: 3.14 MB / 0.504 GB, free: 6.652 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000997/0.4211, allocations: 435.7 kB / 0.5044 GB, free: 6.207 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002372/0.4214, allocations: 24 kB / 0.5044 GB, free: 6.184 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009259/0.4223, allocations: 95.81 kB / 0.5045 GB, free: 6.09 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001975/0.4225, allocations: 80.95 kB / 0.5046 GB, free: 6.012 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.339e-05/0.4226, allocations: 39.92 kB / 0.5046 GB, free: 5.973 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001919/0.4245, allocations: 1.22 MB / 0.5058 GB, free: 4.762 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4245, allocations: 0 / 0.5058 GB, free: 4.762 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00155/0.426, allocations: 491.9 kB / 0.5063 GB, free: 4.281 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (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.0004107/0.4265, allocations: 204 kB / 0.5065 GB, free: 4.07 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003743/0.4302, allocations: 2.268 MB / 0.5087 GB, free: 1.738 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.408e-06/0.4302, allocations: 0 / 0.5087 GB, free: 1.738 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001921/0.4321, allocations: 1.272 MB / 0.5099 GB, free: 404 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002303/0.4344, allocations: 0.4919 MB / 0.5104 GB, free: 15.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008557/0.443, allocations: 4.937 MB / 0.5152 GB, free: 10.91 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001931/0.4449, allocations: 2.01 MB / 0.5172 GB, free: 8.863 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001557/0.4465, allocations: 0.496 MB / 0.5177 GB, free: 8.363 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004253/0.4469, allocations: 139.4 kB / 0.5178 GB, free: 8.227 MB / 446.1 MB Notification: Performance of SimCode: time 9.12e-07/0.4469, allocations: 0 / 0.5178 GB, free: 8.227 MB / 446.1 MB Notification: Performance of Templates: time 0.2614/0.7083, allocations: 26.71 MB / 0.5439 GB, free: 117.7 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches