Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=800,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=800,variableFilter="time|smpm.is.1.|smpm.is.2.|constantSpeed.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001243/0.001243, allocations: 111.7 kB / 17.06 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 194.9 kB / 18 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001047/0.001047, allocations: 43.94 kB / 351.3 MB, free: 3.234 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.299/0.3, allocations: 49.44 MB / 400.7 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.009836/0.3099, allocations: 8.991 MB / 409.7 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005101/0.315, allocations: 3.152 MB / 412.9 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005755/0.3156, allocations: 43.81 kB / 412.9 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001467/0.3171, allocations: 0.7186 MB / 413.6 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001632/0.3188, allocations: 0.7379 MB / 414.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006631/0.3194, allocations: 319.5 kB / 414.7 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001958/0.3214, allocations: 2.109 MB / 416.8 MB, free: 8.887 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001525/0.3229, allocations: 1.417 MB / 418.2 MB, free: 7.414 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001048/0.324, allocations: 0.9265 MB / 419.1 MB, free: 6.484 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001233/0.3252, allocations: 1.121 MB / 420.3 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002621/0.3255, allocations: 228 kB / 420.5 MB, free: 5.137 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000493/0.326, allocations: 323.8 kB / 420.8 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006058/0.3266, allocations: 0.6739 MB / 421.5 MB, free: 4.145 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009861/0.3276, allocations: 1.081 MB / 422.6 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002715/0.3304, allocations: 3.103 MB / 425.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.3304, allocations: 0 / 425.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3304, allocations: 8 kB / 425.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.364e-05/0.3304, allocations: 0 / 425.7 MB, free: 15.94 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.004217/0.3346, allocations: 2.265 MB / 427.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.3347, allocations: 12.03 kB / 427.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005809/0.3353, allocations: 218.5 kB / 428.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001776/0.3371, allocations: 1.227 MB / 429.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.821e-05/0.3372, allocations: 111.5 kB / 429.5 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002286/0.3374, allocations: 151.9 kB / 429.6 MB, free: 11.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003049/0.3405, allocations: 2.008 MB / 431.6 MB, free: 9.785 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.57e-05/0.3405, allocations: 11.91 kB / 431.7 MB, free: 9.773 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001402/0.3407, allocations: 67.98 kB / 431.7 MB, free: 9.707 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.583e-05/0.3408, allocations: 74.86 kB / 431.8 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002552/0.3433, allocations: 1.647 MB / 433.4 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008484/0.3518, allocations: 6.897 MB / 440.3 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007136/0.3525, allocations: 444.5 kB / 440.8 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003567/0.3529, allocations: 262.6 kB / 441 MB, free: 48 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002139/0.3531, allocations: 121.4 kB / 441.2 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.3532, allocations: 39 kB / 441.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 2.023e-06/0.3532, allocations: 4 kB / 441.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.00639/0.3596, allocations: 3.28 MB / 444.5 MB, free: 12.5 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002297/0.3619, allocations: 2.338 MB / 446.8 MB, free: 9.996 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001989/0.3639, allocations: 1.608 MB / 448.4 MB, free: 8.379 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.805e-05/0.364, allocations: 33.7 kB / 448.5 MB, free: 8.34 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006731/0.3646, allocations: 1.029 MB / 449.5 MB, free: 7.297 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001747/0.3648, allocations: 240.8 kB / 449.7 MB, free: 7.059 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003837/0.3652, allocations: 323.1 kB / 450 MB, free: 6.738 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.769e-05/0.3653, allocations: 309.2 kB / 450.3 MB, free: 6.434 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007312/0.366, allocations: 0.5114 MB / 450.8 MB, free: 5.922 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001256/0.3673, allocations: 1.464 MB / 452.3 MB, free: 3.992 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002153/0.3695, allocations: 2.145 MB / 454.5 MB, free: 1.379 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.085e-05/0.3695, allocations: 8 kB / 454.5 MB, free: 1.371 MB / 366.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003011/0.3725, allocations: 2.154 MB / 456.6 MB, free: 15.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.862e-05/0.3726, allocations: 23.98 kB / 456.6 MB, free: 15.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.98e-05/0.3726, allocations: 36 kB / 456.7 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004859/0.3731, allocations: 226.5 kB / 456.9 MB, free: 14.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00108/0.3742, allocations: 395.2 kB / 457.3 MB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001566/0.3757, allocations: 1.844 MB / 459.1 MB, free: 12.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001085/0.3768, allocations: 139.4 kB / 459.3 MB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001031/0.377, allocations: 100 kB / 459.4 MB, free: 12.3 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * 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 (204): * Single equations (assignments): 201 * 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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007244/0.3777, allocations: 0.5866 MB / 459.9 MB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001942/0.3779, allocations: 150.2 kB / 460.1 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001795/0.3797, allocations: 1.117 MB / 461.2 MB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.3797, allocations: 4 kB / 461.2 MB, free: 10.41 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.3797, allocations: 4 kB / 461.2 MB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.3797, allocations: 3.984 kB / 461.2 MB, free: 10.4 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004735/0.3845, allocations: 3.39 MB / 464.6 MB, free: 6.863 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.296e-06/0.3845, allocations: 8 kB / 464.6 MB, free: 6.855 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004053/0.3849, allocations: 111.8 kB / 464.7 MB, free: 6.746 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000574/0.3855, allocations: 222.3 kB / 464.9 MB, free: 6.52 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.891e-05/0.3855, allocations: 20.17 kB / 465 MB, free: 6.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003634/0.3892, allocations: 4.05 MB / 469 MB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001823/0.391, allocations: 2.177 MB / 471.2 MB, free: 15.83 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002328/0.3934, allocations: 1.743 MB / 472.9 MB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000473/0.3939, allocations: 307.1 kB / 473.2 MB, free: 13.67 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001768/0.394, allocations: 23.92 kB / 473.3 MB, free: 13.65 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006474/0.3947, allocations: 43.95 kB / 473.3 MB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001205/0.3948, allocations: 71.8 kB / 473.4 MB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.16e-05/0.3949, allocations: 24 kB / 473.4 MB, free: 13.51 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001485/0.3964, allocations: 1.07 MB / 474.5 MB, free: 12.45 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.3964, allocations: 0 / 474.5 MB, free: 12.45 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001615/0.398, allocations: 384 kB / 474.8 MB, free: 12.07 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 1 ($STATESET1.x) * 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 (57): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003216/0.3983, allocations: 171 kB / 475 MB, free: 11.89 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002325/0.4007, allocations: 1.617 MB / 476.6 MB, free: 10.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.4007, allocations: 0 / 476.6 MB, free: 10.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001184/0.4019, allocations: 0.8553 MB / 477.5 MB, free: 9.328 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001675/0.4036, allocations: 413.4 kB / 477.9 MB, free: 8.934 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004222/0.4078, allocations: 3.169 MB / 481.1 MB, free: 5.656 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001011/0.4088, allocations: 1.469 MB / 482.5 MB, free: 4.156 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008397/0.4097, allocations: 354 kB / 482.9 MB, free: 3.805 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002615/0.4099, allocations: 115.4 kB / 483 MB, free: 3.691 MB / 398.1 MB Notification: Performance of SimCode: time 4.91e-07/0.4099, allocations: 0 / 483 MB, free: 3.691 MB / 398.1 MB Notification: Performance of Templates: time 0.03579/0.4457, allocations: 20.86 MB / 0.492 GB, free: 15.04 MB / 430.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches