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.001316/0.001316, allocations: 80.09 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001919/0.001919, allocations: 151.6 kB / 23.94 MB, free: 4.16 MB / 14.72 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.457/1.457, allocations: 173.3 MB / 200.4 MB, free: 12.88 MB / 190.1 MB " [Timeout remaining time 178] 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.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=20000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.823e-06/1.823e-06, allocations: 0 / 318.9 MB, free: 3.551 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.723e-05/2.905e-05, allocations: 6.219 kB / 318.9 MB, free: 3.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01097/0.011, allocations: 9.611 MB / 328.6 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007541/0.01854, allocations: 3.438 MB / 332 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002076/0.02061, allocations: 84.19 kB / 332.1 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002375/0.02299, allocations: 0.8212 MB / 332.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00347/0.02646, allocations: 0.941 MB / 333.8 MB, free: 9.707 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001161/0.02762, allocations: 464 kB / 334.3 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003777/0.0314, allocations: 3.037 MB / 337.3 MB, free: 7.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002365/0.03376, allocations: 1.508 MB / 338.8 MB, free: 6.449 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003158/0.03692, allocations: 2.061 MB / 340.9 MB, free: 5.121 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00247/0.03939, allocations: 1.521 MB / 342.4 MB, free: 4.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000584/0.03997, allocations: 372 kB / 342.8 MB, free: 3.707 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001024/0.041, allocations: 475.7 kB / 343.3 MB, free: 3.242 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001196/0.0422, allocations: 1.118 MB / 344.4 MB, free: 2.117 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001485/0.04368, allocations: 1.134 MB / 345.5 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005507/0.04919, allocations: 4.943 MB / 350.4 MB, free: 12.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.04919, allocations: 0 / 350.4 MB, free: 12.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.04919, allocations: 0 / 350.4 MB, free: 12.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.722e-05/0.04928, allocations: 4 kB / 350.5 MB, free: 12.02 MB / 318.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.007142/0.05642, allocations: 3.363 MB / 353.8 MB, free: 8.605 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.575e-05/0.05648, allocations: 8.922 kB / 353.8 MB, free: 8.598 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008958/0.05737, allocations: 350.9 kB / 354.2 MB, free: 8.254 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003226/0.0606, allocations: 1.755 MB / 355.9 MB, free: 6.461 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000182/0.06078, allocations: 193.4 kB / 356.1 MB, free: 6.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004244/0.06121, allocations: 252.3 kB / 356.4 MB, free: 6.023 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005743/0.06695, allocations: 3.359 MB / 359.7 MB, free: 2.566 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.577e-05/0.06702, allocations: 15.88 kB / 359.7 MB, free: 2.551 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000262/0.06728, allocations: 104 kB / 359.8 MB, free: 2.449 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001438/0.06742, allocations: 124.9 kB / 360 MB, free: 2.324 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004729/0.07215, allocations: 2.744 MB / 362.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01498/0.08713, allocations: 9.035 MB / 371.7 MB, free: 6.184 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001956/0.08909, allocations: 1.055 MB / 372.8 MB, free: 5.113 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00127/0.09036, allocations: 0.7153 MB / 373.5 MB, free: 4.391 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002119/0.09057, allocations: 44.97 kB / 373.5 MB, free: 4.348 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.979e-05/0.09062, allocations: 51.44 kB / 373.6 MB, free: 4.285 MB / 334.1 MB Notification: Performance of pre-optimization done (n=98): time 2.745e-06/0.09062, allocations: 0 / 373.6 MB, free: 4.285 MB / 334.1 MB Notification: Performance of matching and sorting (n=123): time 0.01553/0.1062, allocations: 6.625 MB / 380.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/0.1062, allocations: 64.41 kB / 380.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002443/0.1086, allocations: 1.644 MB / 381.9 MB, free: 11.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.635e-05/0.1087, allocations: 45.7 kB / 382 MB, free: 11.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001035/0.1098, allocations: 1.321 MB / 383.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003851/0.1102, allocations: 440.2 kB / 383.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000493/0.1107, allocations: 291.4 kB / 384 MB, free: 9.797 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.1108, allocations: 309.1 kB / 384.3 MB, free: 9.492 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001245/0.112, allocations: 0.773 MB / 385.1 MB, free: 8.719 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001683/0.1137, allocations: 1.292 MB / 386.4 MB, free: 7.199 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003126/0.1168, allocations: 2.206 MB / 388.6 MB, free: 4.766 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.098e-05/0.1169, allocations: 12 kB / 388.6 MB, free: 4.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004312/0.1212, allocations: 2.468 MB / 391.1 MB, free: 2.266 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.724e-05/0.1212, allocations: 12 kB / 391.1 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.477e-05/0.1212, allocations: 16 kB / 391.1 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006535/0.1219, allocations: 235.3 kB / 391.3 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001528/0.1234, allocations: 419.3 kB / 391.7 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002951/0.1263, allocations: 2.986 MB / 394.7 MB, free: 14.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001318/0.1277, allocations: 131.7 kB / 394.8 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001277/0.1278, allocations: 68 kB / 394.9 MB, free: 14.2 MB / 366.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.001506/0.1293, allocations: 0.825 MB / 395.7 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000333/0.1296, allocations: 190.8 kB / 395.9 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003603/0.1332, allocations: 2.018 MB / 397.9 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.541e-05/0.1333, allocations: 12 kB / 397.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.1333, allocations: 4 kB / 398 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/0.1333, allocations: 3.984 kB / 398 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007529/0.1408, allocations: 4.114 MB / 402.1 MB, free: 6.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.836e-06/0.1408, allocations: 4 kB / 402.1 MB, free: 6.906 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001141/0.1419, allocations: 263.6 kB / 402.3 MB, free: 6.648 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005678/0.1425, allocations: 207.5 kB / 402.5 MB, free: 6.434 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.813e-05/0.1426, allocations: 24 kB / 402.6 MB, free: 6.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003025/0.1456, allocations: 2.958 MB / 405.5 MB, free: 3.246 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.1456, allocations: 0 / 405.5 MB, free: 3.246 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005015/0.1506, allocations: 3.116 MB / 408.6 MB, free: 80 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000867/0.1515, allocations: 354.5 kB / 409 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002299/0.1517, allocations: 24 kB / 409 MB, free: 15.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009391/0.1527, allocations: 96.14 kB / 409.1 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001957/0.1529, allocations: 88.81 kB / 409.2 MB, free: 15.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.492e-05/0.153, allocations: 35.94 kB / 409.2 MB, free: 15.49 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001688/0.1546, allocations: 1.098 MB / 410.3 MB, free: 14.4 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1546, allocations: 3.938 kB / 410.3 MB, free: 14.39 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00148/0.1561, allocations: 483.9 kB / 410.8 MB, free: 13.92 MB / 382.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.0003929/0.1565, allocations: 198.8 kB / 411 MB, free: 13.72 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003541/0.1601, allocations: 2.114 MB / 413.1 MB, free: 11.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.1601, allocations: 0 / 413.1 MB, free: 11.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001841/0.1619, allocations: 1.126 MB / 414.2 MB, free: 10.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002002/0.1639, allocations: 442.3 kB / 414.7 MB, free: 9.988 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007708/0.1716, allocations: 4.86 MB / 419.5 MB, free: 5.062 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001687/0.1733, allocations: 1.442 MB / 421 MB, free: 3.578 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001262/0.1746, allocations: 486.8 kB / 421.4 MB, free: 3.098 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004397/0.175, allocations: 140.5 kB / 421.6 MB, free: 2.961 MB / 382.1 MB Notification: Performance of SimCode: time 8.12e-07/0.175, allocations: 0 / 421.6 MB, free: 2.961 MB / 382.1 MB Notification: Performance of Templates: time 0.04567/0.2207, allocations: 24.71 MB / 446.3 MB, free: 10.57 MB / 414.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.253984767943621]