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.001036/0.001036, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.001406/0.001406, allocations: 184.2 kB / 17.57 MB, free: 6.199 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.327/1.327, allocations: 223.3 MB / 241.6 MB, free: 112 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002436/0.0002437, allocations: 4 kB / 301.4 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09197/0.09223, allocations: 50.42 MB / 351.8 MB, free: 3.703 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.008493/0.1008, allocations: 8.449 MB / 360.3 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005161/0.106, allocations: 3.096 MB / 363.4 MB, free: 8.105 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009921/0.107, allocations: 39.81 kB / 363.4 MB, free: 8.066 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001459/0.1085, allocations: 0.5906 MB / 364 MB, free: 7.473 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001885/0.1104, allocations: 0.6256 MB / 364.6 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007269/0.1111, allocations: 291.6 kB / 364.9 MB, free: 6.559 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002808/0.1139, allocations: 2.421 MB / 367.3 MB, free: 4.129 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001438/0.1154, allocations: 1.176 MB / 368.5 MB, free: 2.906 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009113/0.1163, allocations: 0.7116 MB / 369.2 MB, free: 2.191 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00122/0.1175, allocations: 0.9919 MB / 370.2 MB, free: 1.195 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001872/0.1177, allocations: 104 kB / 370.3 MB, free: 1.094 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004895/0.1182, allocations: 199.8 kB / 370.5 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005164/0.1187, allocations: 0.5295 MB / 371 MB, free: 376 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1645/0.2832, allocations: 0.9333 MB / 372 MB, free: 12.21 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003234/0.2865, allocations: 2.912 MB / 374.9 MB, free: 12.08 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.2865, allocations: 0.5625 kB / 374.9 MB, free: 12.08 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2865, allocations: 0 / 374.9 MB, free: 12.08 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.308e-05/0.2866, allocations: 0.5312 kB / 374.9 MB, free: 12.08 MB / 302.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.003959/0.2906, allocations: 1.936 MB / 376.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.2906, allocations: 9.406 kB / 376.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006358/0.2913, allocations: 228.9 kB / 377.1 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001752/0.293, allocations: 1.179 MB / 378.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.287e-05/0.2931, allocations: 116.7 kB / 378.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002271/0.2934, allocations: 153.8 kB / 378.5 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00355/0.2969, allocations: 2.014 MB / 380.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.828e-05/0.297, allocations: 10.08 kB / 380.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001652/0.2972, allocations: 61.78 kB / 380.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.66e-05/0.2973, allocations: 76.92 kB / 380.7 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002519/0.2998, allocations: 1.649 MB / 382.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008171/0.308, allocations: 6.974 MB / 389.3 MB, free: 6.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006851/0.3087, allocations: 441.3 kB / 389.7 MB, free: 6.219 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003441/0.309, allocations: 268.1 kB / 390 MB, free: 6.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001948/0.3092, allocations: 119.6 kB / 390.1 MB, free: 5.984 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.813e-05/0.3093, allocations: 33.25 kB / 390.1 MB, free: 5.945 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.354e-06/0.3093, allocations: 0 / 390.1 MB, free: 5.945 MB / 302.1 MB Notification: Performance of matching and sorting (n=63): time 0.0065/0.3158, allocations: 3.301 MB / 393.4 MB, free: 4.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001792/0.3176, allocations: 2.173 MB / 395.6 MB, free: 2.125 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002022/0.3196, allocations: 1.611 MB / 397.2 MB, free: 1.25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.652e-05/0.3197, allocations: 41.67 kB / 397.3 MB, free: 1.207 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004516/0.3201, allocations: 1.022 MB / 398.3 MB, free: 312 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001352/0.3203, allocations: 234.6 kB / 398.5 MB, free: 112 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001373/0.3204, allocations: 133.1 kB / 398.6 MB, free: 24 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.3205, allocations: 305.1 kB / 398.9 MB, free: 15.72 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007368/0.3213, allocations: 0.5156 MB / 399.5 MB, free: 15.47 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001312/0.3226, allocations: 1.461 MB / 400.9 MB, free: 13.9 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002237/0.3249, allocations: 2.139 MB / 403.1 MB, free: 12.06 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.468e-05/0.3249, allocations: 10.06 kB / 403.1 MB, free: 12.06 MB / 318.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003565/0.3285, allocations: 2.163 MB / 405.2 MB, free: 11.14 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.526e-05/0.3285, allocations: 22.52 kB / 405.2 MB, free: 11.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.262e-05/0.3286, allocations: 35.94 kB / 405.3 MB, free: 11.08 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005358/0.3291, allocations: 230.5 kB / 405.5 MB, free: 10.85 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001117/0.3302, allocations: 403.6 kB / 405.9 MB, free: 10.49 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001657/0.3319, allocations: 1.71 MB / 407.6 MB, free: 8.664 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001601/0.3335, allocations: 135.4 kB / 407.7 MB, free: 8.531 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/0.3337, allocations: 95.98 kB / 407.8 MB, free: 8.438 MB / 318.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.001006/0.3347, allocations: 0.593 MB / 408.4 MB, free: 7.867 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002776/0.335, allocations: 151.1 kB / 408.6 MB, free: 7.719 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001993/0.337, allocations: 1.109 MB / 409.7 MB, free: 6.594 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.221e-06/0.337, allocations: 4 kB / 409.7 MB, free: 6.59 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.337, allocations: 3.938 kB / 409.7 MB, free: 6.586 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.238e-06/0.337, allocations: 7.984 kB / 409.7 MB, free: 6.578 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005833/0.3429, allocations: 3.395 MB / 413.1 MB, free: 3.086 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.075e-05/0.3429, allocations: 8 kB / 413.1 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004286/0.3433, allocations: 107.2 kB / 413.2 MB, free: 2.984 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006471/0.344, allocations: 227.7 kB / 413.4 MB, free: 2.754 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.116e-05/0.3441, allocations: 31.92 kB / 413.5 MB, free: 2.727 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004265/0.3483, allocations: 3.691 MB / 417.2 MB, free: 14.79 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002198/0.3506, allocations: 2.012 MB / 419.2 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003102/0.3537, allocations: 1.745 MB / 420.9 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009231/0.3546, allocations: 311.1 kB / 421.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004314/0.3551, allocations: 16 kB / 421.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000959/0.356, allocations: 51.94 kB / 421.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001812/0.3562, allocations: 66.95 kB / 421.3 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.381e-05/0.3563, allocations: 24 kB / 421.4 MB, free: 10.34 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002341/0.3587, allocations: 1.073 MB / 422.4 MB, free: 9.277 MB / 334.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.3587, allocations: 0 / 422.4 MB, free: 9.277 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002234/0.3609, allocations: 388 kB / 422.8 MB, free: 8.898 MB / 334.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.0004846/0.3614, allocations: 179.5 kB / 423 MB, free: 8.723 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002768/0.3642, allocations: 1.6 MB / 424.6 MB, free: 7.168 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.3642, allocations: 448 / 424.6 MB, free: 7.168 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001437/0.3657, allocations: 0.8489 MB / 425.4 MB, free: 6.297 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003216/0.3689, allocations: 383 kB / 425.8 MB, free: 5.934 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005966/0.3749, allocations: 3.893 MB / 429.7 MB, free: 1.953 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001448/0.3764, allocations: 1.472 MB / 431.2 MB, free: 460 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001319/0.3777, allocations: 350 kB / 431.5 MB, free: 104 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003723/0.3781, allocations: 115.5 kB / 431.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of SimCode: time 1.683e-06/0.3781, allocations: 0 / 431.6 MB, free: 15.98 MB / 350.1 MB Notification: Performance of Templates: time 0.0355/0.4136, allocations: 19.33 MB / 451 MB, free: 12.91 MB / 366.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