Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 113 kB / 17.68 MB, free: 5.473 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.0009901/0.0009902, allocations: 190.9 kB / 18.62 MB, free: 4.543 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.299/1.299, allocations: 222.9 MB / 242.3 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001016/0.001016, allocations: 42.66 kB / 302.1 MB, free: 5.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1116, allocations: 49.45 MB / 351.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01225/0.1239, allocations: 10.91 MB / 362.4 MB, free: 8.727 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007326/0.1312, allocations: 3.625 MB / 366 MB, free: 5.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00232/0.1336, allocations: 67.69 kB / 366.1 MB, free: 5.023 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00241/0.136, allocations: 0.8111 MB / 366.9 MB, free: 4.207 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003344/0.1394, allocations: 0.858 MB / 367.8 MB, free: 3.344 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001204/0.1407, allocations: 462.2 kB / 368.2 MB, free: 2.895 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1783/0.319, allocations: 2.93 MB / 371.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004719/0.3237, allocations: 2.732 MB / 373.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002139/0.3259, allocations: 1.368 MB / 375.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003055/0.3289, allocations: 1.755 MB / 377 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001208/0.3302, allocations: 372.5 kB / 377.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001852/0.332, allocations: 475.3 kB / 377.8 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001569/0.3336, allocations: 1.072 MB / 378.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002563/0.3362, allocations: 1.671 MB / 380.6 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005252/0.3415, allocations: 4.878 MB / 385.5 MB, free: 8.52 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.904e-06/0.3415, allocations: 5.281 kB / 385.5 MB, free: 8.516 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3415, allocations: 0 / 385.5 MB, free: 8.516 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001388/0.3417, allocations: 0 / 385.5 MB, free: 8.516 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.007483/0.3492, allocations: 3.386 MB / 388.9 MB, free: 6.594 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.3492, allocations: 8.938 kB / 388.9 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008853/0.3501, allocations: 339.5 kB / 389.2 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003304/0.3534, allocations: 1.829 MB / 391 MB, free: 5.215 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.3535, allocations: 192.8 kB / 391.2 MB, free: 5.129 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003587/0.3539, allocations: 244.3 kB / 391.4 MB, free: 5.047 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005136/0.3591, allocations: 3.291 MB / 394.7 MB, free: 3.105 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.103e-05/0.3591, allocations: 3.75 kB / 394.7 MB, free: 3.105 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002138/0.3594, allocations: 103.8 kB / 394.8 MB, free: 3.027 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.55e-05/0.3595, allocations: 123.4 kB / 395 MB, free: 3.004 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00469/0.3642, allocations: 2.751 MB / 397.7 MB, free: 1.609 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01632/0.3805, allocations: 10.38 MB / 408.1 MB, free: 7.992 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001878/0.3824, allocations: 1.359 MB / 409.5 MB, free: 6.578 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001209/0.3837, allocations: 0.788 MB / 410.2 MB, free: 5.793 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002888/0.384, allocations: 209.8 kB / 410.4 MB, free: 5.551 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.912e-05/0.384, allocations: 39.56 kB / 410.5 MB, free: 5.504 MB / 318.1 MB Notification: Performance of pre-optimization done (n=98): time 3.146e-06/0.384, allocations: 0 / 410.5 MB, free: 5.504 MB / 318.1 MB Notification: Performance of matching and sorting (n=123): time 0.01512/0.3991, allocations: 6.902 MB / 417.4 MB, free: 14.52 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.014e-05/0.3992, allocations: 64.41 kB / 417.4 MB, free: 14.45 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002994/0.4022, allocations: 1.789 MB / 419.2 MB, free: 12.65 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001584/0.4024, allocations: 45.7 kB / 419.3 MB, free: 12.6 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009141/0.4033, allocations: 1.277 MB / 420.6 MB, free: 11.31 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004061/0.4037, allocations: 423.7 kB / 421 MB, free: 10.9 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005362/0.4043, allocations: 300.8 kB / 421.3 MB, free: 10.61 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.4044, allocations: 309.1 kB / 421.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001178/0.4056, allocations: 0.773 MB / 422.3 MB, free: 9.527 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001568/0.4072, allocations: 1.287 MB / 423.6 MB, free: 8.02 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003016/0.4102, allocations: 2.218 MB / 425.8 MB, free: 5.641 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.828e-06/0.4103, allocations: 4 kB / 425.9 MB, free: 5.637 MB / 334.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004312/0.4146, allocations: 2.469 MB / 428.3 MB, free: 3.246 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.37e-05/0.4146, allocations: 15.98 kB / 428.3 MB, free: 3.23 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.005e-05/0.4147, allocations: 19.98 kB / 428.4 MB, free: 3.211 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006344/0.4153, allocations: 239.8 kB / 428.6 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001437/0.4168, allocations: 419.3 kB / 429 MB, free: 2.582 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00308/0.4199, allocations: 3.242 MB / 432.2 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001812/0.4217, allocations: 127.8 kB / 432.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001346/0.4218, allocations: 68 kB / 432.4 MB, free: 14.89 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.001596/0.4234, allocations: 0.8218 MB / 433.3 MB, free: 14.08 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004169/0.4239, allocations: 185.8 kB / 433.4 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003535/0.4274, allocations: 2.037 MB / 435.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-05/0.4275, allocations: 19.94 kB / 435.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/0.4275, allocations: 4 kB / 435.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.387e-05/0.4275, allocations: 7.969 kB / 435.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008549/0.4361, allocations: 4.739 MB / 440.2 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.4362, allocations: 0 / 440.2 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00113/0.4373, allocations: 269.1 kB / 440.5 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005762/0.4379, allocations: 199.5 kB / 440.7 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.543e-05/0.438, allocations: 24 kB / 440.7 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002685/0.4407, allocations: 3.215 MB / 443.9 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.4407, allocations: 3.938 kB / 443.9 MB, free: 3.062 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004574/0.4453, allocations: 3.14 MB / 447.1 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001133/0.4464, allocations: 422.7 kB / 447.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002461/0.4467, allocations: 24 kB / 447.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009338/0.4476, allocations: 91.94 kB / 447.6 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001797/0.4478, allocations: 87.72 kB / 447.7 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.862e-05/0.4479, allocations: 32 kB / 447.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001898/0.4498, allocations: 1.224 MB / 448.9 MB, free: 14 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4498, allocations: 0 / 448.9 MB, free: 14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00167/0.4515, allocations: 492 kB / 449.4 MB, free: 13.52 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.0003864/0.4519, allocations: 196.5 kB / 449.6 MB, free: 13.33 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003516/0.4554, allocations: 2.35 MB / 452 MB, free: 10.97 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.4554, allocations: 0.875 kB / 452 MB, free: 10.97 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001789/0.4572, allocations: 1.349 MB / 453.3 MB, free: 9.586 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002381/0.4596, allocations: 0.4897 MB / 453.8 MB, free: 9.105 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007544/0.4672, allocations: 4.852 MB / 458.7 MB, free: 4.203 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001712/0.4689, allocations: 2.01 MB / 460.7 MB, free: 2.156 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00154/0.4705, allocations: 0.4921 MB / 461.2 MB, free: 1.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000443/0.4709, allocations: 147.4 kB / 461.3 MB, free: 1.516 MB / 366.1 MB Notification: Performance of SimCode: time 1.192e-06/0.471, allocations: 4 kB / 461.3 MB, free: 1.512 MB / 366.1 MB Notification: Performance of Templates: time 0.04509/0.5161, allocations: 25.73 MB / 487 MB, free: 8.125 MB / 398.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches