Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.0009017/0.0009017, allocations: 91.61 kB / 22.19 MB, free: 2.379 MB / 18.57 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.0008264/0.0008264, allocations: 160.4 kB / 25.45 MB, free: 9.352 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.866/0.866, allocations: 158.6 MB / 187.2 MB, free: 3.051 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smee.is.1.|smee.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smee.is.1.|smee.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.263e-06/1.263e-06, allocations: 0 / 299.7 MB, free: 6.902 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.404e-05/1.53e-05, allocations: 10.22 kB / 299.7 MB, free: 6.891 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.007344/0.007359, allocations: 9.591 MB / 309.3 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003803/0.01116, allocations: 3.49 MB / 312.8 MB, free: 9.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005036/0.01167, allocations: 75.44 kB / 312.9 MB, free: 9.676 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001059/0.01272, allocations: 0.811 MB / 313.7 MB, free: 8.859 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001209/0.01393, allocations: 0.9468 MB / 314.6 MB, free: 7.906 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004485/0.01438, allocations: 463.2 kB / 315.1 MB, free: 7.453 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001682/0.01606, allocations: 3.058 MB / 318.1 MB, free: 4.383 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001228/0.01729, allocations: 1.477 MB / 319.6 MB, free: 2.844 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001345/0.01864, allocations: 2.054 MB / 321.7 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00119/0.01983, allocations: 1.512 MB / 323.2 MB, free: 15.27 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002595/0.02009, allocations: 376 kB / 323.6 MB, free: 14.9 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004423/0.02053, allocations: 475.7 kB / 324 MB, free: 14.44 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006014/0.02113, allocations: 1.118 MB / 325.1 MB, free: 13.32 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007085/0.02184, allocations: 1.138 MB / 326.3 MB, free: 12.18 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0028/0.02464, allocations: 4.943 MB / 331.2 MB, free: 7.219 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.785e-06/0.02464, allocations: 0 / 331.2 MB, free: 7.219 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.123e-06/0.02464, allocations: 0 / 331.2 MB, free: 7.219 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.565e-05/0.02467, allocations: 0 / 331.2 MB, free: 7.219 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.003403/0.02807, allocations: 3.351 MB / 334.6 MB, free: 3.816 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.0281, allocations: 12.03 kB / 334.6 MB, free: 3.805 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004621/0.02857, allocations: 358.8 kB / 334.9 MB, free: 3.453 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001749/0.03032, allocations: 1.63 MB / 336.6 MB, free: 1.777 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.807e-05/0.03041, allocations: 193.4 kB / 336.8 MB, free: 1.586 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002384/0.03065, allocations: 244.4 kB / 337 MB, free: 1.348 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003255/0.03391, allocations: 3.367 MB / 340.4 MB, free: 13.88 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.691e-05/0.03395, allocations: 3.953 kB / 340.4 MB, free: 13.88 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001611/0.03412, allocations: 108 kB / 340.5 MB, free: 13.77 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.512e-05/0.0342, allocations: 124.9 kB / 340.6 MB, free: 13.65 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002765/0.03697, allocations: 2.74 MB / 343.3 MB, free: 10.89 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007918/0.04488, allocations: 9.062 MB / 352.4 MB, free: 1.484 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001102/0.04599, allocations: 1.059 MB / 353.5 MB, free: 424 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1332/0.1792, allocations: 0.6936 MB / 354.1 MB, free: 58.31 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002317/0.1794, allocations: 49.67 kB / 354.2 MB, free: 58.31 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.546e-05/0.1795, allocations: 48.69 kB / 354.2 MB, free: 58.27 MB / 330.7 MB Notification: Performance of pre-optimization done (n=97): time 2.875e-06/0.1795, allocations: 0.625 kB / 354.2 MB, free: 58.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=122): time 0.009953/0.1894, allocations: 6.744 MB / 361 MB, free: 56.91 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.659e-05/0.1895, allocations: 69.31 kB / 361.1 MB, free: 56.84 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00172/0.1912, allocations: 1.64 MB / 362.7 MB, free: 56.23 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.256e-05/0.1912, allocations: 47.23 kB / 362.7 MB, free: 56.19 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005037/0.1917, allocations: 1.317 MB / 364.1 MB, free: 55.34 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001744/0.1919, allocations: 444.5 kB / 364.5 MB, free: 55.04 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002981/0.1922, allocations: 296.4 kB / 364.8 MB, free: 54.89 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.43e-05/0.1922, allocations: 306.1 kB / 365.1 MB, free: 54.59 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007718/0.193, allocations: 0.7751 MB / 365.9 MB, free: 54.32 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008964/0.1939, allocations: 1.293 MB / 367.1 MB, free: 53.41 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001586/0.1955, allocations: 2.221 MB / 369.4 MB, free: 52.05 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.145e-06/0.1955, allocations: 4.812 kB / 369.4 MB, free: 52.05 MB / 330.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.002052/0.1976, allocations: 2.46 MB / 371.8 MB, free: 51.07 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.1976, allocations: 14.72 kB / 371.8 MB, free: 51.07 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.57e-05/0.1976, allocations: 18.06 kB / 371.9 MB, free: 51.06 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003102/0.1979, allocations: 239.3 kB / 372.1 MB, free: 50.88 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006857/0.1986, allocations: 425.8 kB / 372.5 MB, free: 50.54 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001169/0.1998, allocations: 2.976 MB / 375.5 MB, free: 47.39 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005794/0.2003, allocations: 131.9 kB / 375.6 MB, free: 47.26 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.544e-05/0.2004, allocations: 75.98 kB / 375.7 MB, free: 47.19 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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.0007659/0.2012, allocations: 0.8172 MB / 376.5 MB, free: 46.36 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001464/0.2013, allocations: 178.9 kB / 376.7 MB, free: 46.18 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001608/0.2029, allocations: 2.026 MB / 378.7 MB, free: 44.13 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.2029, allocations: 12 kB / 378.7 MB, free: 44.12 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.035e-06/0.2029, allocations: 0 / 378.7 MB, free: 44.12 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/0.2029, allocations: 7.969 kB / 378.7 MB, free: 44.11 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003413/0.2064, allocations: 4.099 MB / 382.8 MB, free: 39.96 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.2064, allocations: 0 / 382.8 MB, free: 39.96 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004934/0.2069, allocations: 263.6 kB / 383.1 MB, free: 39.7 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000247/0.2071, allocations: 207.2 kB / 383.3 MB, free: 39.49 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.221e-05/0.2071, allocations: 26 kB / 383.3 MB, free: 39.46 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009846/0.2081, allocations: 2.968 MB / 386.3 MB, free: 36.31 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.2081, allocations: 4 kB / 386.3 MB, free: 36.3 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002229/0.2104, allocations: 3.112 MB / 389.4 MB, free: 33.13 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003687/0.2107, allocations: 338.6 kB / 389.7 MB, free: 32.8 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000107/0.2108, allocations: 27.98 kB / 389.8 MB, free: 32.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004179/0.2113, allocations: 95.7 kB / 389.9 MB, free: 32.68 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.798e-05/0.2113, allocations: 92.84 kB / 389.9 MB, free: 32.59 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.682e-05/0.2114, allocations: 35.98 kB / 390 MB, free: 32.55 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007531/0.2121, allocations: 1.095 MB / 391.1 MB, free: 31.46 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2121, allocations: 0 / 391.1 MB, free: 31.46 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008427/0.213, allocations: 480 kB / 391.5 MB, free: 31 MB / 330.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 (120): * Single equations (assignments): 116 * 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.0002478/0.2132, allocations: 197.4 kB / 391.7 MB, free: 30.8 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001679/0.2149, allocations: 2.108 MB / 393.8 MB, free: 28.66 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.2149, allocations: 4 kB / 393.8 MB, free: 28.66 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007888/0.2157, allocations: 1.123 MB / 395 MB, free: 27.51 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.2167, allocations: 440.6 kB / 395.4 MB, free: 27.1 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003939/0.2207, allocations: 4.913 MB / 400.3 MB, free: 22.12 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007683/0.2214, allocations: 1.409 MB / 401.7 MB, free: 20.68 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002992/0.2217, allocations: 140.5 kB / 401.9 MB, free: 20.54 MB / 330.7 MB Notification: Performance of SimCode: time 8.12e-07/0.2217, allocations: 3.938 kB / 401.9 MB, free: 20.54 MB / 330.7 MB Notification: Performance of Templates: time 0.04746/0.2692, allocations: 83 MB / 484.9 MB, free: 1.383 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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: 9.055491473525763]