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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009444/0.0009444, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001281/0.002225, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008337/0.0008337, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001148/0.001982, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.019/1.019, allocations: 173.4 MB / 185.8 MB, free: 8.988 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08639/1.106, allocations: 52.49 MB / 238.3 MB, free: 4.438 MB / 234.7 MB " [Timeout remaining time 179] 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=20000,variableFilter="time|smpm.is.[0-9,]+.|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=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 239.6 MB, free: 3.164 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.115e-05/1.265e-05, allocations: 2.312 kB / 239.6 MB, free: 3.16 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.008368/0.00838, allocations: 10.6 MB / 250.2 MB, free: 8.512 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005105/0.01349, allocations: 3.698 MB / 253.9 MB, free: 4.801 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000923/0.01441, allocations: 83.44 kB / 253.9 MB, free: 4.719 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001184/0.01559, allocations: 0.8421 MB / 254.8 MB, free: 3.871 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001423/0.01701, allocations: 0.9429 MB / 255.7 MB, free: 2.922 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005908/0.01761, allocations: 463.2 kB / 256.2 MB, free: 2.469 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002188/0.01979, allocations: 3.039 MB / 259.2 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001346/0.02114, allocations: 1.56 MB / 260.8 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002331/0.02347, allocations: 2.656 MB / 263.4 MB, free: 11.1 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0012/0.02467, allocations: 1.496 MB / 264.9 MB, free: 9.602 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003209/0.02499, allocations: 356 kB / 265.3 MB, free: 9.254 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005646/0.02555, allocations: 463.8 kB / 265.7 MB, free: 8.801 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005546/0.02611, allocations: 0.8689 MB / 266.6 MB, free: 7.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007636/0.02687, allocations: 0.9123 MB / 267.5 MB, free: 7.016 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00215/0.02902, allocations: 2.453 MB / 270 MB, free: 4.555 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.229e-05/0.02904, allocations: 0 / 270 MB, free: 4.555 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.02904, allocations: 4 kB / 270 MB, free: 4.551 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.96e-05/0.02909, allocations: 0 / 270 MB, free: 4.551 MB / 266.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.00339/0.03248, allocations: 3.681 MB / 273.7 MB, free: 0.8203 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/0.03251, allocations: 12.03 kB / 273.7 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006087/0.03312, allocations: 0.5055 MB / 274.2 MB, free: 292 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1427/0.1758, allocations: 1.296 MB / 275.5 MB, free: 24.32 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001203/0.176, allocations: 188.2 kB / 275.6 MB, free: 24.32 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002834/0.1762, allocations: 253.6 kB / 275.9 MB, free: 24.31 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002808/0.1791, allocations: 1.862 MB / 277.8 MB, free: 23.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.704e-05/0.1791, allocations: 13.53 kB / 277.8 MB, free: 23.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001306/0.1793, allocations: 101.5 kB / 277.9 MB, free: 23.98 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001211/0.1794, allocations: 123.9 kB / 278 MB, free: 23.97 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001309/0.1807, allocations: 0.7451 MB / 278.7 MB, free: 23.88 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007346/0.188, allocations: 6.921 MB / 285.7 MB, free: 20.82 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005832/0.1886, allocations: 0.5278 MB / 286.2 MB, free: 20.64 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002856/0.1889, allocations: 260.8 kB / 286.4 MB, free: 20.61 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001495/0.189, allocations: 58.34 kB / 286.5 MB, free: 20.61 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.199e-05/0.1891, allocations: 45.86 kB / 286.5 MB, free: 20.57 MB / 266.7 MB Notification: Performance of pre-optimization done (n=98): time 2.194e-06/0.1891, allocations: 0 / 286.5 MB, free: 20.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=123): time 0.004687/0.1938, allocations: 2.945 MB / 289.5 MB, free: 19.77 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.246e-05/0.1938, allocations: 66.25 kB / 289.6 MB, free: 19.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006734/0.1945, allocations: 1.174 MB / 290.7 MB, free: 19.47 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.596e-05/0.1945, allocations: 45.7 kB / 290.8 MB, free: 19.42 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002841/0.1948, allocations: 1.094 MB / 291.9 MB, free: 18.7 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001563/0.1949, allocations: 454.3 kB / 292.3 MB, free: 18.36 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002071/0.1951, allocations: 276.5 kB / 292.6 MB, free: 18.25 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 2.656e-05/0.1952, allocations: 302.9 kB / 292.9 MB, free: 17.95 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002068/0.1954, allocations: 183.4 kB / 293.1 MB, free: 17.93 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003049/0.1957, allocations: 0.6765 MB / 293.7 MB, free: 17.32 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007175/0.1964, allocations: 1.045 MB / 294.8 MB, free: 16.66 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.726e-06/0.1964, allocations: 3.938 kB / 294.8 MB, free: 16.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.0009881/0.1974, allocations: 1.033 MB / 295.8 MB, free: 15.69 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.1974, allocations: 12 kB / 295.8 MB, free: 15.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.1974, allocations: 16 kB / 295.8 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002148/0.1977, allocations: 120.2 kB / 296 MB, free: 15.53 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007315/0.1984, allocations: 415.3 kB / 296.4 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008522/0.1992, allocations: 2.429 MB / 298.8 MB, free: 12.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004447/0.1997, allocations: 59.91 kB / 298.8 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.328e-05/0.1997, allocations: 70.91 kB / 298.9 MB, free: 12.4 MB / 266.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 {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000303/0.2, allocations: 216.1 kB / 299.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001564/0.2002, allocations: 151.7 kB / 299.3 MB, free: 12.03 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007711/0.201, allocations: 0.7666 MB / 300 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.201, allocations: 12 kB / 300.1 MB, free: 11.23 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.201, allocations: 4 kB / 300.1 MB, free: 11.22 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.201, allocations: 3.984 kB / 300.1 MB, free: 11.22 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002711/0.2037, allocations: 2.118 MB / 302.2 MB, free: 9.223 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/0.2037, allocations: 7.984 kB / 302.2 MB, free: 9.215 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007691/0.2045, allocations: 243.7 kB / 302.4 MB, free: 8.977 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003255/0.2048, allocations: 219 kB / 302.6 MB, free: 8.762 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002413/0.205, allocations: 159.3 kB / 302.8 MB, free: 8.594 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.185e-05/0.2051, allocations: 27.98 kB / 302.8 MB, free: 8.566 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007066/0.2058, allocations: 2.394 MB / 305.2 MB, free: 5.996 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.2058, allocations: 7.938 kB / 305.2 MB, free: 5.988 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009254/0.2067, allocations: 1.104 MB / 306.3 MB, free: 4.84 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001086/0.2068, allocations: 28 kB / 306.4 MB, free: 4.812 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003047/0.2071, allocations: 47.84 kB / 306.4 MB, free: 4.766 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.969e-05/0.2072, allocations: 80.84 kB / 306.5 MB, free: 4.684 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.93e-05/0.2073, allocations: 24 kB / 306.5 MB, free: 4.66 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003494/0.2076, allocations: 0.5763 MB / 307.1 MB, free: 4.152 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2076, allocations: 8 kB / 307.1 MB, free: 4.145 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006702/0.2083, allocations: 463.9 kB / 307.5 MB, free: 3.691 MB / 266.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 {(1,2,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.0002434/0.2085, allocations: 182.4 kB / 307.7 MB, free: 3.512 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000826/0.2093, allocations: 0.9905 MB / 308.7 MB, free: 2.516 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.735e-05/0.2094, allocations: 32.81 kB / 308.7 MB, free: 2.484 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004146/0.2098, allocations: 0.5858 MB / 309.3 MB, free: 1.875 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009603/0.2108, allocations: 0.5727 MB / 309.9 MB, free: 1.324 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01376/0.2245, allocations: 4.24 MB / 314.1 MB, free: 13.03 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004467/0.225, allocations: 0.5805 MB / 314.7 MB, free: 12.42 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005695/0.2255, allocations: 243.1 kB / 315 MB, free: 12.18 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000703/0.2262, allocations: 455 kB / 315.4 MB, free: 11.72 MB / 282.7 MB Notification: Performance of SimCode: time 9.21e-07/0.2262, allocations: 0 / 315.4 MB, free: 11.72 MB / 282.7 MB Notification: Performance of Templates: time 0.03216/0.2584, allocations: 25.91 MB / 341.3 MB, free: 2.266 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2377175632864237]