Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 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.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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00112/0.00112, allocations: 118.8 kB / 17.79 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001237/0.001237, allocations: 201.2 kB / 18.73 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001229/0.001229, allocations: 63.89 kB / 358.7 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3003/0.3015, allocations: 50.54 MB / 409.3 MB, free: 1.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01402/0.3156, allocations: 10.95 MB / 420.2 MB, free: 6.602 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007794/0.3234, allocations: 3.668 MB / 423.9 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00204/0.3255, allocations: 67.69 kB / 423.9 MB, free: 2.855 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002608/0.3282, allocations: 0.8775 MB / 424.8 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003263/0.3315, allocations: 0.9009 MB / 425.7 MB, free: 1.066 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001338/0.3329, allocations: 467.3 kB / 426.2 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003698/0.3366, allocations: 2.945 MB / 429.1 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004167/0.3407, allocations: 2.739 MB / 431.9 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002162/0.3429, allocations: 1.382 MB / 433.2 MB, free: 9.461 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002902/0.3458, allocations: 1.755 MB / 435 MB, free: 7.699 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008615/0.3467, allocations: 376 kB / 435.4 MB, free: 7.332 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001296/0.348, allocations: 479.8 kB / 435.8 MB, free: 6.863 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001041/0.3491, allocations: 1.079 MB / 436.9 MB, free: 5.781 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001869/0.351, allocations: 1.672 MB / 438.6 MB, free: 4.102 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00485/0.3558, allocations: 4.888 MB / 443.5 MB, free: 15.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/0.3558, allocations: 3.938 kB / 443.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3558, allocations: 0 / 443.5 MB, free: 15.19 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.475e-05/0.3559, allocations: 0 / 443.5 MB, free: 15.19 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.006166/0.3621, allocations: 3.402 MB / 446.9 MB, free: 11.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.841e-05/0.3622, allocations: 8.031 kB / 446.9 MB, free: 11.72 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001002/0.3632, allocations: 345.1 kB / 447.2 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003143/0.3663, allocations: 1.83 MB / 449.1 MB, free: 9.492 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001497/0.3665, allocations: 197.3 kB / 449.2 MB, free: 9.297 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000363/0.3669, allocations: 247.8 kB / 449.5 MB, free: 9.055 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005764/0.3726, allocations: 3.283 MB / 452.8 MB, free: 5.691 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.849e-05/0.3727, allocations: 7.906 kB / 452.8 MB, free: 5.684 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002268/0.373, allocations: 100 kB / 452.9 MB, free: 5.586 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001389/0.3731, allocations: 124.9 kB / 453 MB, free: 5.461 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004652/0.3778, allocations: 2.748 MB / 455.7 MB, free: 2.699 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01692/0.3947, allocations: 10.38 MB / 466.1 MB, free: 7.957 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00184/0.3966, allocations: 1.373 MB / 467.5 MB, free: 6.516 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001163/0.3978, allocations: 0.7589 MB / 468.3 MB, free: 5.754 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00028/0.3981, allocations: 203.2 kB / 468.5 MB, free: 5.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.328e-05/0.3981, allocations: 51.55 kB / 468.5 MB, free: 5.461 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 2.685e-06/0.3981, allocations: 0 / 468.5 MB, free: 5.461 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01489/0.413, allocations: 6.906 MB / 475.4 MB, free: 14.44 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.655e-05/0.4131, allocations: 64.41 kB / 475.5 MB, free: 14.37 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003183/0.4163, allocations: 1.794 MB / 477.3 MB, free: 12.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001432/0.4165, allocations: 45.7 kB / 477.3 MB, free: 12.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000902/0.4174, allocations: 1.268 MB / 478.6 MB, free: 11.24 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000383/0.4178, allocations: 429.8 kB / 479 MB, free: 10.81 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004772/0.4183, allocations: 295.3 kB / 479.3 MB, free: 10.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.176e-05/0.4184, allocations: 313.1 kB / 479.6 MB, free: 10.21 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001192/0.4196, allocations: 0.773 MB / 480.4 MB, free: 9.434 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001469/0.421, allocations: 1.296 MB / 481.7 MB, free: 7.914 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002912/0.424, allocations: 2.21 MB / 483.9 MB, free: 5.473 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.667e-05/0.424, allocations: 8 kB / 483.9 MB, free: 5.465 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004182/0.4282, allocations: 2.474 MB / 486.4 MB, free: 2.969 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.071e-05/0.4282, allocations: 12 kB / 486.4 MB, free: 2.957 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.562e-05/0.4283, allocations: 16 kB / 486.4 MB, free: 2.941 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006747/0.429, allocations: 243.6 kB / 486.6 MB, free: 2.691 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001452/0.4304, allocations: 419.3 kB / 487 MB, free: 2.281 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002999/0.4334, allocations: 3.23 MB / 490.3 MB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001494/0.4349, allocations: 131.7 kB / 490.4 MB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001461/0.4351, allocations: 71.98 kB / 490.5 MB, free: 14.56 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.0015/0.4366, allocations: 0.8172 MB / 491.3 MB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006016/0.4372, allocations: 189.8 kB / 491.5 MB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003822/0.441, allocations: 2.043 MB / 493.5 MB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.237e-05/0.4411, allocations: 12 kB / 493.5 MB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-05/0.4411, allocations: 7.938 kB / 493.5 MB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.374e-05/0.4411, allocations: 3.984 kB / 493.5 MB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008952/0.4501, allocations: 4.753 MB / 498.3 MB, free: 6.602 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.414e-06/0.4501, allocations: 0 / 498.3 MB, free: 6.602 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001082/0.4512, allocations: 267.6 kB / 498.5 MB, free: 6.34 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005815/0.4518, allocations: 207.5 kB / 498.7 MB, free: 6.125 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001003/0.4519, allocations: 24 kB / 498.8 MB, free: 6.102 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00278/0.4547, allocations: 3.207 MB / 0.4902 GB, free: 2.613 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.349e-06/0.4547, allocations: 3.938 kB / 0.4902 GB, free: 2.609 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004678/0.4594, allocations: 3.135 MB / 0.4933 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001102/0.4606, allocations: 426.7 kB / 0.4937 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005029/0.4611, allocations: 24 kB / 0.4937 GB, free: 14.95 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001078/0.4622, allocations: 95.81 kB / 0.4938 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001813/0.4624, allocations: 80.95 kB / 0.4939 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.055e-05/0.4624, allocations: 39.98 kB / 0.4939 GB, free: 14.74 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001923/0.4644, allocations: 1.22 MB / 0.4951 GB, free: 13.53 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4644, allocations: 0 / 0.4951 GB, free: 13.53 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001635/0.466, allocations: 492 kB / 0.4956 GB, free: 13.05 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.0004064/0.4664, allocations: 202.9 kB / 0.4958 GB, free: 12.84 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003605/0.4701, allocations: 2.35 MB / 0.4981 GB, free: 10.43 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.257e-06/0.4701, allocations: 4 kB / 0.4981 GB, free: 10.43 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001776/0.4719, allocations: 1.335 MB / 0.4994 GB, free: 9.02 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002153/0.474, allocations: 0.4936 MB / 0.4999 GB, free: 8.543 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008987/0.483, allocations: 4.857 MB / 0.5046 GB, free: 3.621 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002558/0.4856, allocations: 2.022 MB / 0.5066 GB, free: 1.566 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001801/0.4874, allocations: 500 kB / 0.507 GB, free: 1.074 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006224/0.4881, allocations: 143.4 kB / 0.5072 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of SimCode: time 1.743e-06/0.4881, allocations: 4 kB / 0.5072 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of Templates: time 0.0516/0.5397, allocations: 26.31 MB / 0.5329 GB, free: 6.852 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches