Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001701/0.001701, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001901/0.001901, allocations: 215.4 kB / 24.48 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 2.28/2.28, allocations: 230.6 MB / 258.2 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 177] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002063/0.002063, allocations: 59.91 kB / 379 MB, free: 2.426 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3499/0.3519, allocations: 53.37 MB / 432.4 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.02171/0.3736, allocations: 9.664 MB / 442 MB, free: 13 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01192/0.3856, allocations: 3.466 MB / 445.5 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00286/0.3884, allocations: 83.44 kB / 445.6 MB, free: 9.434 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003963/0.3924, allocations: 0.8034 MB / 446.4 MB, free: 8.625 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005549/0.3979, allocations: 0.9243 MB / 447.3 MB, free: 7.695 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001994/0.3999, allocations: 467.3 kB / 447.7 MB, free: 7.238 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006256/0.4062, allocations: 2.942 MB / 450.7 MB, free: 4.285 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003774/0.41, allocations: 1.575 MB / 452.3 MB, free: 2.648 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003324/0.4133, allocations: 1.417 MB / 453.7 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005028/0.4183, allocations: 1.802 MB / 455.5 MB, free: 15.42 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002134/0.4204, allocations: 376 kB / 455.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002489/0.4229, allocations: 479.8 kB / 456.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002017/0.425, allocations: 1.095 MB / 457.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003099/0.4281, allocations: 1.346 MB / 458.8 MB, free: 12.13 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009869/0.4379, allocations: 4.936 MB / 463.7 MB, free: 7.18 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.534e-06/0.4379, allocations: 0 / 463.7 MB, free: 7.18 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.4379, allocations: 0 / 463.7 MB, free: 7.18 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001476/0.4381, allocations: 0 / 463.7 MB, free: 7.18 MB / 366.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.01327/0.4513, allocations: 3.409 MB / 467.1 MB, free: 3.719 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.582e-05/0.4514, allocations: 12.03 kB / 467.1 MB, free: 3.707 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001878/0.4533, allocations: 362.8 kB / 467.5 MB, free: 3.352 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006761/0.46, allocations: 1.76 MB / 469.2 MB, free: 1.555 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002922/0.4603, allocations: 185.4 kB / 469.4 MB, free: 1.371 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008941/0.4612, allocations: 255.9 kB / 469.7 MB, free: 1.121 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01135/0.4726, allocations: 3.366 MB / 473 MB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001087/0.4727, allocations: 7.953 kB / 473 MB, free: 13.65 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004088/0.4731, allocations: 100 kB / 473.1 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002317/0.4733, allocations: 120.9 kB / 473.3 MB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008461/0.4818, allocations: 2.752 MB / 476 MB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03043/0.5122, allocations: 9.04 MB / 485 MB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003175/0.5154, allocations: 1.056 MB / 486.1 MB, free: 216 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002089/0.5175, allocations: 0.712 MB / 486.8 MB, free: 15.49 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003506/0.5178, allocations: 52.91 kB / 486.9 MB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.699e-05/0.5179, allocations: 39.56 kB / 486.9 MB, free: 15.39 MB / 398.1 MB Notification: Performance of pre-optimization done (n=98): time 5.06e-06/0.5179, allocations: 0 / 486.9 MB, free: 15.39 MB / 398.1 MB Notification: Performance of matching and sorting (n=123): time 0.02785/0.5458, allocations: 6.625 MB / 493.5 MB, free: 8.734 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/0.5459, allocations: 64.41 kB / 493.6 MB, free: 8.66 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004439/0.5503, allocations: 1.637 MB / 495.2 MB, free: 7.016 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003061/0.5506, allocations: 49.7 kB / 495.3 MB, free: 6.961 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00176/0.5524, allocations: 1.329 MB / 496.6 MB, free: 5.621 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007482/0.5531, allocations: 448.2 kB / 497 MB, free: 5.18 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008692/0.554, allocations: 299.4 kB / 497.3 MB, free: 4.879 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002739/0.5543, allocations: 305.1 kB / 497.6 MB, free: 4.578 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00221/0.5565, allocations: 0.773 MB / 498.4 MB, free: 3.805 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003164/0.5596, allocations: 1.292 MB / 499.7 MB, free: 2.285 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005794/0.5654, allocations: 2.214 MB / 0.4901 GB, free: 15.84 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-05/0.5655, allocations: 4 kB / 0.4901 GB, free: 15.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.007846/0.5733, allocations: 2.468 MB / 0.4926 GB, free: 13.35 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.746e-05/0.5733, allocations: 12 kB / 0.4926 GB, free: 13.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.441e-05/0.5734, allocations: 16 kB / 0.4926 GB, free: 13.32 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001133/0.5745, allocations: 247.2 kB / 0.4928 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002815/0.5773, allocations: 411.3 kB / 0.4932 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004995/0.5823, allocations: 2.985 MB / 0.4961 GB, free: 9.473 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002775/0.5851, allocations: 136 kB / 0.4963 GB, free: 9.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003275/0.5854, allocations: 71.98 kB / 0.4963 GB, free: 9.27 MB / 414.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.004924/0.5904, allocations: 0.8172 MB / 0.4971 GB, free: 8.441 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007684/0.5911, allocations: 182.8 kB / 0.4973 GB, free: 8.262 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006189/0.5973, allocations: 2.03 MB / 0.4993 GB, free: 6.207 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.088e-05/0.5973, allocations: 12 kB / 0.4993 GB, free: 6.195 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.386e-05/0.5973, allocations: 4 kB / 0.4993 GB, free: 6.191 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.11e-05/0.5974, allocations: 7.969 kB / 0.4993 GB, free: 6.184 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01377/0.6111, allocations: 4.114 MB / 0.5033 GB, free: 1.988 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.438e-05/0.6112, allocations: 7.938 kB / 0.5033 GB, free: 1.98 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0021/0.6133, allocations: 255.6 kB / 0.5036 GB, free: 1.73 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001036/0.6143, allocations: 203.5 kB / 0.5038 GB, free: 1.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001561/0.6144, allocations: 28 kB / 0.5038 GB, free: 1.492 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004746/0.6192, allocations: 2.962 MB / 0.5067 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.6192, allocations: 0 / 0.5067 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008843/0.628, allocations: 3.132 MB / 0.5097 GB, free: 11.13 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001928/0.63, allocations: 338.7 kB / 0.5101 GB, free: 10.8 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006385/0.6306, allocations: 20 kB / 0.5101 GB, free: 10.78 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001955/0.6326, allocations: 99.98 kB / 0.5102 GB, free: 10.68 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003346/0.6329, allocations: 88.72 kB / 0.5103 GB, free: 10.6 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001379/0.633, allocations: 32 kB / 0.5103 GB, free: 10.57 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003029/0.6361, allocations: 1.103 MB / 0.5114 GB, free: 9.469 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.6361, allocations: 0 / 0.5114 GB, free: 9.469 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002919/0.639, allocations: 483.9 kB / 0.5118 GB, free: 8.996 MB / 430.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.0006364/0.6396, allocations: 190.9 kB / 0.512 GB, free: 8.801 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006232/0.6459, allocations: 2.124 MB / 0.5141 GB, free: 6.648 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/0.6459, allocations: 0 / 0.5141 GB, free: 6.648 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003241/0.6491, allocations: 1.119 MB / 0.5152 GB, free: 5.496 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003774/0.6529, allocations: 452.7 kB / 0.5156 GB, free: 5.062 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01438/0.6673, allocations: 4.947 MB / 0.5204 GB, free: 48 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00296/0.6702, allocations: 1.441 MB / 0.5219 GB, free: 14.57 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002598/0.6728, allocations: 486.8 kB / 0.5223 GB, free: 14.09 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008018/0.6736, allocations: 131.4 kB / 0.5224 GB, free: 13.96 MB / 446.1 MB Notification: Performance of SimCode: time 1.452e-06/0.6736, allocations: 0 / 0.5224 GB, free: 13.96 MB / 446.1 MB Notification: Performance of Templates: time 0.3619/1.036, allocations: 28.63 MB / 0.5504 GB, free: 96.16 MB / 446.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.413506651006173]