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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001405/0.001405, allocations: 88.28 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.007185/0.007185, allocations: 160.6 kB / 24.7 MB, free: 9.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8987/0.8987, allocations: 177 MB / 204.9 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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=20000,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=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 325.8 MB, free: 15.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.947e-05/3.112e-05, allocations: 3.125 kB / 325.8 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.008638/0.008669, allocations: 9.669 MB / 335.5 MB, free: 5.527 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006188/0.01486, allocations: 3.49 MB / 339 MB, free: 2.023 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001681/0.01654, allocations: 83.44 kB / 339 MB, free: 1.941 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001597/0.01814, allocations: 0.8148 MB / 339.9 MB, free: 1.117 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00224/0.02038, allocations: 0.9507 MB / 340.8 MB, free: 164 kB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00082/0.0212, allocations: 467.2 kB / 341.3 MB, free: 15.7 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002902/0.0241, allocations: 3.042 MB / 344.3 MB, free: 12.65 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001505/0.0256, allocations: 1.509 MB / 345.8 MB, free: 11.08 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002423/0.02803, allocations: 2.066 MB / 347.9 MB, free: 9.008 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001675/0.0297, allocations: 1.52 MB / 349.4 MB, free: 7.484 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007646/0.03047, allocations: 372 kB / 349.8 MB, free: 7.121 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007417/0.03121, allocations: 479.8 kB / 350.2 MB, free: 6.652 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007378/0.03195, allocations: 1.122 MB / 351.3 MB, free: 5.527 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001196/0.03314, allocations: 1.134 MB / 352.5 MB, free: 4.391 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004157/0.0373, allocations: 4.954 MB / 357.4 MB, free: 15.42 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.0373, allocations: 0 / 357.4 MB, free: 15.42 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.03731, allocations: 0 / 357.4 MB, free: 15.42 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001075/0.03741, allocations: 0 / 357.4 MB, free: 15.42 MB / 330.7 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.004938/0.04235, allocations: 3.374 MB / 360.8 MB, free: 12 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.0424, allocations: 8.031 kB / 360.8 MB, free: 11.99 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000664/0.04306, allocations: 370.8 kB / 361.2 MB, free: 11.62 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00222/0.04528, allocations: 1.759 MB / 362.9 MB, free: 9.824 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001083/0.04539, allocations: 193.4 kB / 363.1 MB, free: 9.633 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002597/0.04565, allocations: 244.3 kB / 363.4 MB, free: 9.395 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004432/0.05008, allocations: 3.359 MB / 366.7 MB, free: 5.938 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.529e-05/0.05014, allocations: 8 kB / 366.7 MB, free: 5.93 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001618/0.0503, allocations: 104 kB / 366.8 MB, free: 5.828 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.974e-05/0.0504, allocations: 128.9 kB / 367 MB, free: 5.699 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003337/0.05373, allocations: 2.74 MB / 369.7 MB, free: 2.945 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01251/0.06624, allocations: 9.047 MB / 378.7 MB, free: 9.547 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001309/0.06755, allocations: 1.062 MB / 379.8 MB, free: 8.48 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007823/0.06834, allocations: 0.7036 MB / 380.5 MB, free: 7.77 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001785/0.06851, allocations: 52.95 kB / 380.6 MB, free: 7.719 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.744e-05/0.06855, allocations: 43.56 kB / 380.6 MB, free: 7.664 MB / 346.7 MB Notification: Performance of pre-optimization done (n=98): time 4.709e-06/0.06856, allocations: 0 / 380.6 MB, free: 7.664 MB / 346.7 MB Notification: Performance of matching and sorting (n=123): time 0.009874/0.07843, allocations: 6.64 MB / 387.2 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.568e-05/0.07848, allocations: 64.41 kB / 387.3 MB, free: 0.9219 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002017/0.08049, allocations: 1.653 MB / 389 MB, free: 15.26 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.266e-05/0.08058, allocations: 45.7 kB / 389 MB, free: 15.21 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006511/0.08123, allocations: 1.321 MB / 390.3 MB, free: 13.88 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002701/0.0815, allocations: 440.2 kB / 390.8 MB, free: 13.45 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003222/0.08182, allocations: 303.4 kB / 391.1 MB, free: 13.14 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.603e-05/0.0819, allocations: 301.1 kB / 391.3 MB, free: 12.85 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008338/0.08273, allocations: 0.7768 MB / 392.1 MB, free: 12.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001201/0.08393, allocations: 1.288 MB / 393.4 MB, free: 10.55 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00194/0.08587, allocations: 2.214 MB / 395.6 MB, free: 8.113 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.474e-05/0.08588, allocations: 4 kB / 395.6 MB, free: 8.109 MB / 362.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.002965/0.08885, allocations: 2.472 MB / 398.1 MB, free: 5.617 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.216e-05/0.08888, allocations: 12 kB / 398.1 MB, free: 5.605 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.231e-05/0.0889, allocations: 20.06 kB / 398.1 MB, free: 5.586 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004369/0.08934, allocations: 243.2 kB / 398.4 MB, free: 5.336 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008204/0.09016, allocations: 411.3 kB / 398.8 MB, free: 4.934 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002136/0.0923, allocations: 2.978 MB / 401.8 MB, free: 1.746 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001137/0.09343, allocations: 131.9 kB / 401.9 MB, free: 1.617 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/0.09354, allocations: 72 kB / 402 MB, free: 1.547 MB / 362.7 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.001492/0.09503, allocations: 0.8214 MB / 402.8 MB, free: 0.7148 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004217/0.09545, allocations: 178.8 kB / 402.9 MB, free: 0.5391 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002524/0.09797, allocations: 2.03 MB / 405 MB, free: 14.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.09799, allocations: 15.94 kB / 405 MB, free: 14.47 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.09799, allocations: 0 / 405 MB, free: 14.47 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.438e-05/0.09801, allocations: 7.969 kB / 405 MB, free: 14.46 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005546/0.1036, allocations: 4.103 MB / 409.1 MB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.832e-06/0.1036, allocations: 3.938 kB / 409.1 MB, free: 10.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000609/0.1042, allocations: 267.6 kB / 409.4 MB, free: 10.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003547/0.1045, allocations: 195.3 kB / 409.6 MB, free: 9.805 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.66e-05/0.1046, allocations: 24 kB / 409.6 MB, free: 9.781 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001917/0.1065, allocations: 2.959 MB / 412.5 MB, free: 6.613 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.1065, allocations: 12.16 kB / 412.6 MB, free: 6.602 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003541/0.1101, allocations: 3.12 MB / 415.7 MB, free: 3.434 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007364/0.1108, allocations: 338.7 kB / 416 MB, free: 3.102 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001283/0.1109, allocations: 27.94 kB / 416 MB, free: 3.074 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005377/0.1115, allocations: 95.86 kB / 416.1 MB, free: 2.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001471/0.1116, allocations: 84.78 kB / 416.2 MB, free: 2.898 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.993e-05/0.1117, allocations: 36.06 kB / 416.2 MB, free: 2.863 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001508/0.1132, allocations: 1.099 MB / 417.3 MB, free: 1.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1132, allocations: 0 / 417.3 MB, free: 1.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001754/0.1149, allocations: 491.9 kB / 417.8 MB, free: 1.289 MB / 378.7 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.000456/0.1154, allocations: 191 kB / 418 MB, free: 1.09 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002674/0.118, allocations: 2.125 MB / 420.1 MB, free: 14.93 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.118, allocations: 3.938 kB / 420.1 MB, free: 14.93 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001347/0.1194, allocations: 1.119 MB / 421.3 MB, free: 13.78 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001282/0.1207, allocations: 440.1 kB / 421.7 MB, free: 13.36 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006802/0.1275, allocations: 4.921 MB / 426.6 MB, free: 8.367 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001408/0.1289, allocations: 1.404 MB / 428 MB, free: 6.926 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005676/0.1295, allocations: 148.5 kB / 428.2 MB, free: 6.777 MB / 394.7 MB Notification: Performance of SimCode: time 1.243e-06/0.1295, allocations: 0 / 428.2 MB, free: 6.777 MB / 394.7 MB Notification: Performance of Templates: time 0.2314/0.3609, allocations: 83.09 MB / 0.4993 GB, free: 62.78 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (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 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 7.898175178095698]