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.001114/0.001114, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001085/0.001085, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.4 MB / 247.5 MB, free: 10.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001765/0.001766, allocations: 62.06 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1192, allocations: 50.54 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.0188/0.1381, allocations: 10.95 MB / 369.9 MB, free: 2.363 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1651/0.3032, allocations: 3.67 MB / 373.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002484/0.3057, allocations: 70.53 kB / 373.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002575/0.3083, allocations: 0.8168 MB / 374.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003376/0.3118, allocations: 0.8628 MB / 375.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001192/0.313, allocations: 466.7 kB / 375.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004243/0.3172, allocations: 2.943 MB / 378.7 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003433/0.3207, allocations: 2.743 MB / 381.4 MB, free: 9 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002704/0.3234, allocations: 1.374 MB / 382.8 MB, free: 8.359 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002679/0.3261, allocations: 1.758 MB / 384.6 MB, free: 7.582 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006263/0.3267, allocations: 372.4 kB / 384.9 MB, free: 7.582 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001184/0.3279, allocations: 482.3 kB / 385.4 MB, free: 7.559 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00114/0.3291, allocations: 1.071 MB / 386.5 MB, free: 7 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001557/0.3306, allocations: 1.672 MB / 388.1 MB, free: 5.906 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003976/0.3346, allocations: 4.896 MB / 393 MB, free: 3.199 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3346, allocations: 0 / 393 MB, free: 3.199 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.3346, allocations: 1.094 kB / 393 MB, free: 3.199 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.254e-05/0.3347, allocations: 0 / 393 MB, free: 3.199 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.005568/0.3403, allocations: 3.399 MB / 396.4 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/0.3403, allocations: 9.875 kB / 396.4 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008656/0.3412, allocations: 347.6 kB / 396.8 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003034/0.3442, allocations: 1.824 MB / 398.6 MB, free: 15.43 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001205/0.3444, allocations: 190 kB / 398.8 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003307/0.3447, allocations: 254.6 kB / 399 MB, free: 15.25 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004893/0.3496, allocations: 3.288 MB / 402.3 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.905e-05/0.3497, allocations: 3.906 kB / 402.3 MB, free: 13.29 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002162/0.3499, allocations: 111.4 kB / 402.4 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001158/0.35, allocations: 120.9 kB / 402.6 MB, free: 13.06 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004246/0.3543, allocations: 2.756 MB / 405.3 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01462/0.3689, allocations: 10.37 MB / 415.7 MB, free: 15.64 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0017/0.3706, allocations: 1.366 MB / 417 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001144/0.3718, allocations: 0.7963 MB / 417.8 MB, free: 13.42 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002822/0.3721, allocations: 201.6 kB / 418 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.845e-05/0.3721, allocations: 43.56 kB / 418.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of pre-optimization done (n=98): time 3.176e-06/0.3721, allocations: 4 kB / 418.1 MB, free: 13.13 MB / 334.1 MB Notification: Performance of matching and sorting (n=123): time 0.01421/0.3864, allocations: 6.891 MB / 425 MB, free: 6.141 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.679e-05/0.3864, allocations: 77.66 kB / 425 MB, free: 6.051 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002653/0.3891, allocations: 1.794 MB / 426.8 MB, free: 4.258 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001412/0.3893, allocations: 41.7 kB / 426.9 MB, free: 4.211 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009858/0.3903, allocations: 1.278 MB / 428.2 MB, free: 2.922 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000403/0.3907, allocations: 426.8 kB / 428.6 MB, free: 2.508 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004729/0.3911, allocations: 299.2 kB / 428.9 MB, free: 2.211 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.114e-05/0.3912, allocations: 305.1 kB / 429.2 MB, free: 1.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001143/0.3924, allocations: 0.7769 MB / 429.9 MB, free: 1.133 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001456/0.3939, allocations: 1.295 MB / 431.2 MB, free: 15.61 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002687/0.3966, allocations: 2.212 MB / 433.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.3966, allocations: 8 kB / 433.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003767/0.4004, allocations: 2.466 MB / 435.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.4004, allocations: 12 kB / 435.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.051e-05/0.4004, allocations: 16 kB / 436 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005885/0.401, allocations: 255.4 kB / 436.2 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001402/0.4024, allocations: 415.3 kB / 436.6 MB, free: 9.984 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002596/0.405, allocations: 3.23 MB / 439.8 MB, free: 6.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001576/0.4066, allocations: 127.8 kB / 440 MB, free: 6.352 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001351/0.4068, allocations: 75.98 kB / 440 MB, free: 6.277 MB / 350.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.001448/0.4082, allocations: 0.8134 MB / 440.8 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003817/0.4086, allocations: 189.7 kB / 441 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003188/0.4118, allocations: 2.043 MB / 443.1 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.105e-05/0.4118, allocations: 12 kB / 443.1 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.4118, allocations: 4 kB / 443.1 MB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/0.4119, allocations: 7.969 kB / 443.1 MB, free: 3.168 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007538/0.4194, allocations: 4.749 MB / 447.8 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.4194, allocations: 4 kB / 447.9 MB, free: 14.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001056/0.4205, allocations: 263.6 kB / 448.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005532/0.4211, allocations: 203.3 kB / 448.3 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.639e-05/0.4211, allocations: 28.16 kB / 448.3 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002485/0.4236, allocations: 3.21 MB / 451.5 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.591e-06/0.4237, allocations: 7.969 kB / 451.6 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004431/0.4281, allocations: 3.131 MB / 454.7 MB, free: 7.164 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00154/0.4297, allocations: 430.6 kB / 455.1 MB, free: 6.723 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000279/0.43, allocations: 20 kB / 455.1 MB, free: 6.703 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009566/0.4309, allocations: 96 kB / 455.2 MB, free: 6.609 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001911/0.4311, allocations: 96.75 kB / 455.3 MB, free: 6.512 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.87e-05/0.4312, allocations: 36.06 kB / 455.3 MB, free: 6.477 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001845/0.4331, allocations: 1.224 MB / 456.6 MB, free: 5.262 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4331, allocations: 0 / 456.6 MB, free: 5.262 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001514/0.4346, allocations: 492 kB / 457.1 MB, free: 4.781 MB / 366.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.0003737/0.435, allocations: 186.9 kB / 457.2 MB, free: 4.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003289/0.4383, allocations: 2.354 MB / 459.6 MB, free: 2.172 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.4383, allocations: 0 / 459.6 MB, free: 2.172 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001823/0.4401, allocations: 1.34 MB / 460.9 MB, free: 0.7656 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001942/0.4421, allocations: 0.4986 MB / 461.4 MB, free: 292 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007346/0.4494, allocations: 4.854 MB / 466.3 MB, free: 11.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001828/0.4513, allocations: 2.01 MB / 468.3 MB, free: 9.328 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001283/0.4526, allocations: 0.4999 MB / 468.8 MB, free: 8.824 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000503/0.4531, allocations: 139.4 kB / 468.9 MB, free: 8.688 MB / 382.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4531, allocations: 0 / 468.9 MB, free: 8.688 MB / 382.1 MB Notification: Performance of Templates: time 0.04403/0.4971, allocations: 25.82 MB / 494.7 MB, free: 15.13 MB / 414.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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/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