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.001089/0.001089, allocations: 114.9 kB / 17.74 MB, free: 5.336 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.001093/0.001093, allocations: 188.5 kB / 18.67 MB, free: 4.41 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.309/1.309, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009881/0.0009882, allocations: 55.91 kB / 352 MB, free: 3.23 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2841/0.2851, allocations: 49.43 MB / 401.4 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.009545/0.2947, allocations: 8.988 MB / 410.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005367/0.3001, allocations: 3.158 MB / 413.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001049/0.3012, allocations: 43.81 kB / 413.6 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001683/0.3029, allocations: 0.6601 MB / 414.3 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002003/0.3049, allocations: 0.7028 MB / 415 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007457/0.3057, allocations: 327.4 kB / 415.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00221/0.3079, allocations: 2.105 MB / 417.4 MB, free: 8.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001541/0.3095, allocations: 1.421 MB / 418.8 MB, free: 7.344 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001349/0.3108, allocations: 0.9186 MB / 419.7 MB, free: 6.422 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001439/0.3123, allocations: 1.121 MB / 420.8 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003298/0.3126, allocations: 232 kB / 421.1 MB, free: 5.07 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005965/0.3132, allocations: 327.8 kB / 421.4 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005927/0.3138, allocations: 0.6661 MB / 422.1 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001056/0.3149, allocations: 1.085 MB / 423.1 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002916/0.3178, allocations: 3.101 MB / 426.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3178, allocations: 4 kB / 426.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3179, allocations: 4 kB / 426.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.826e-05/0.3179, allocations: 0 / 426.3 MB, free: 15.88 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.003778/0.3217, allocations: 2.265 MB / 428.5 MB, free: 13.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.3217, allocations: 12.03 kB / 428.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005491/0.3223, allocations: 230.5 kB / 428.8 MB, free: 13.31 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001773/0.3241, allocations: 1.219 MB / 430 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.278e-05/0.3242, allocations: 111.5 kB / 430.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002029/0.3244, allocations: 155.9 kB / 430.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002987/0.3274, allocations: 2.008 MB / 432.2 MB, free: 9.715 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.924e-05/0.3275, allocations: 11.91 kB / 432.3 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001332/0.3276, allocations: 60 kB / 432.3 MB, free: 9.645 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.949e-05/0.3277, allocations: 74.92 kB / 432.4 MB, free: 9.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00246/0.3301, allocations: 1.651 MB / 434 MB, free: 7.914 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009115/0.3393, allocations: 6.889 MB / 440.9 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007294/0.34, allocations: 452.4 kB / 441.4 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003637/0.3404, allocations: 266.7 kB / 441.6 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002171/0.3407, allocations: 113.5 kB / 441.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.384e-05/0.3407, allocations: 39 kB / 441.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 2.665e-06/0.3407, allocations: 4 kB / 441.8 MB, free: 15.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.006521/0.3472, allocations: 3.279 MB / 445.1 MB, free: 12.44 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002227/0.3495, allocations: 2.341 MB / 447.4 MB, free: 9.934 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002035/0.3515, allocations: 1.612 MB / 449 MB, free: 8.312 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.725e-05/0.3516, allocations: 37.7 kB / 449.1 MB, free: 8.27 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006423/0.3523, allocations: 1.022 MB / 450.1 MB, free: 7.234 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001845/0.3525, allocations: 232.8 kB / 450.3 MB, free: 7.004 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003945/0.3529, allocations: 323.1 kB / 450.6 MB, free: 6.684 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.55e-05/0.353, allocations: 309.2 kB / 450.9 MB, free: 6.379 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007117/0.3537, allocations: 0.5153 MB / 451.4 MB, free: 5.863 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001269/0.355, allocations: 1.464 MB / 452.9 MB, free: 3.934 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002142/0.3571, allocations: 2.141 MB / 455 MB, free: 1.324 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.475e-05/0.3571, allocations: 11.94 kB / 455.1 MB, free: 1.312 MB / 366.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003248/0.3604, allocations: 2.161 MB / 457.2 MB, free: 15.13 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.64e-05/0.3604, allocations: 16 kB / 457.2 MB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.097e-05/0.3605, allocations: 36 kB / 457.3 MB, free: 15.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005052/0.361, allocations: 226.5 kB / 457.5 MB, free: 14.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00107/0.3621, allocations: 399.2 kB / 457.9 MB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00154/0.3636, allocations: 1.84 MB / 459.7 MB, free: 12.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001323/0.365, allocations: 147.5 kB / 459.9 MB, free: 12.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001244/0.3651, allocations: 99.98 kB / 460 MB, free: 12.23 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.0008517/0.366, allocations: 0.5866 MB / 460.5 MB, free: 11.64 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002519/0.3662, allocations: 150.1 kB / 460.7 MB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001784/0.368, allocations: 1.114 MB / 461.8 MB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.368, allocations: 11.98 kB / 461.8 MB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.368, allocations: 0 / 461.8 MB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.3681, allocations: 0 / 461.8 MB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004931/0.373, allocations: 3.394 MB / 465.2 MB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.654e-06/0.373, allocations: 4 kB / 465.2 MB, free: 6.793 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004097/0.3734, allocations: 111.8 kB / 465.3 MB, free: 6.684 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005825/0.374, allocations: 222.4 kB / 465.5 MB, free: 6.457 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.378e-05/0.3741, allocations: 16.22 kB / 465.6 MB, free: 6.441 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003743/0.3778, allocations: 4.058 MB / 469.6 MB, free: 2.09 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001912/0.3798, allocations: 2.173 MB / 471.8 MB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002553/0.3824, allocations: 1.747 MB / 473.5 MB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006567/0.383, allocations: 307.1 kB / 473.8 MB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002861/0.3833, allocations: 19.94 kB / 473.9 MB, free: 13.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007616/0.3841, allocations: 51.94 kB / 473.9 MB, free: 13.54 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/0.3843, allocations: 63.81 kB / 474 MB, free: 13.47 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.373e-05/0.3843, allocations: 27.98 kB / 474 MB, free: 13.45 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001708/0.386, allocations: 1.07 MB / 475.1 MB, free: 12.38 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.386, allocations: 0 / 475.1 MB, free: 12.38 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001684/0.3877, allocations: 380 kB / 475.4 MB, free: 12.01 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.0003426/0.3881, allocations: 175 kB / 475.6 MB, free: 11.83 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002464/0.3906, allocations: 1.613 MB / 477.2 MB, free: 10.17 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.3906, allocations: 0 / 477.2 MB, free: 10.17 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001188/0.3918, allocations: 0.8396 MB / 478.1 MB, free: 9.281 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002011/0.3938, allocations: 413.3 kB / 478.5 MB, free: 8.883 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004965/0.3988, allocations: 3.223 MB / 481.7 MB, free: 5.547 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001029/0.3999, allocations: 1.461 MB / 483.1 MB, free: 4.055 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004065/0.4003, allocations: 119.4 kB / 483.3 MB, free: 3.938 MB / 398.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4003, allocations: 4 kB / 483.3 MB, free: 3.934 MB / 398.1 MB Notification: Performance of Templates: time 0.05177/0.4521, allocations: 47.61 MB / 0.5184 GB, free: 4.375 MB / 446.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","/var/lib/jenkins1/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