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.001014/0.001014, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.000937/0.000937, allocations: 174.5 kB / 24.91 MB, free: 9.195 MB / 18.57 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 0.8549/0.8549, allocations: 177.1 MB / 205.3 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] 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.[0-9,]+.|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.[0-9,]+.|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 1.523e-06/1.523e-06, allocations: 0 / 273.5 MB, free: 1.297 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.597e-05/1.749e-05, allocations: 2.312 kB / 273.5 MB, free: 1.293 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01129/0.01131, allocations: 10.53 MB / 284 MB, free: 6.711 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005946/0.01726, allocations: 3.73 MB / 287.7 MB, free: 2.969 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008105/0.01807, allocations: 83.44 kB / 287.8 MB, free: 2.887 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001805/0.01987, allocations: 0.8305 MB / 288.6 MB, free: 2.051 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001847/0.02172, allocations: 0.9585 MB / 289.6 MB, free: 1.086 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007386/0.02246, allocations: 471.1 kB / 290 MB, free: 0.625 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.09728/0.1197, allocations: 3.04 MB / 293.1 MB, free: 15.92 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001816/0.1216, allocations: 1.546 MB / 294.6 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002857/0.1244, allocations: 2.485 MB / 297.1 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001846/0.1263, allocations: 1.495 MB / 298.6 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006824/0.1269, allocations: 358.3 kB / 299 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006973/0.1276, allocations: 467.6 kB / 299.4 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006414/0.1283, allocations: 1.053 MB / 300.5 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001102/0.1294, allocations: 1.111 MB / 301.6 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002155/0.1315, allocations: 2.614 MB / 304.2 MB, free: 13.26 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.1315, allocations: 3.938 kB / 304.2 MB, free: 13.26 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1315, allocations: 0 / 304.2 MB, free: 13.26 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.448e-05/0.1316, allocations: 0 / 304.2 MB, free: 13.26 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.002977/0.1346, allocations: 3.104 MB / 307.3 MB, free: 11.55 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.1346, allocations: 11.91 kB / 307.3 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006452/0.1353, allocations: 454 kB / 307.8 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001355/0.1366, allocations: 1.299 MB / 309.1 MB, free: 10.81 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.661e-05/0.1367, allocations: 195.8 kB / 309.3 MB, free: 10.72 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002021/0.1369, allocations: 250 kB / 309.5 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001599/0.1385, allocations: 1.86 MB / 311.4 MB, free: 9.594 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.655e-05/0.1386, allocations: 3.953 kB / 311.4 MB, free: 9.59 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000131/0.1387, allocations: 111.3 kB / 311.5 MB, free: 9.484 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.947e-05/0.1388, allocations: 120.9 kB / 311.6 MB, free: 9.363 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009456/0.1397, allocations: 0.7428 MB / 312.3 MB, free: 8.594 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005349/0.1451, allocations: 6.881 MB / 319.2 MB, free: 1.914 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000499/0.1456, allocations: 0.5329 MB / 319.7 MB, free: 1.398 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002724/0.1458, allocations: 265.8 kB / 320 MB, free: 1.148 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001438/0.146, allocations: 56.97 kB / 320.1 MB, free: 1.094 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.783e-05/0.146, allocations: 47.56 kB / 320.1 MB, free: 1.035 MB / 266.7 MB Notification: Performance of pre-optimization done (n=98): time 2.404e-06/0.146, allocations: 0 / 320.1 MB, free: 1.035 MB / 266.7 MB Notification: Performance of matching and sorting (n=123): time 0.004517/0.1505, allocations: 2.951 MB / 323.1 MB, free: 14.1 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.955e-05/0.1505, allocations: 69.34 kB / 323.1 MB, free: 14.02 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007889/0.1513, allocations: 1.178 MB / 324.3 MB, free: 13.06 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.413e-05/0.1514, allocations: 45.7 kB / 324.3 MB, free: 13.01 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004179/0.1518, allocations: 1.1 MB / 325.4 MB, free: 11.97 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002082/0.152, allocations: 440.7 kB / 325.9 MB, free: 11.57 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002532/0.1523, allocations: 282.4 kB / 326.2 MB, free: 11.32 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 6.145e-05/0.1523, allocations: 301.1 kB / 326.4 MB, free: 11.02 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000243/0.1526, allocations: 184.6 kB / 326.6 MB, free: 10.84 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004258/0.153, allocations: 0.6743 MB / 327.3 MB, free: 9.98 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008155/0.1538, allocations: 1.061 MB / 328.4 MB, free: 8.801 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/0.1538, allocations: 4 kB / 328.4 MB, free: 8.797 MB / 282.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.001528/0.1553, allocations: 1.029 MB / 329.4 MB, free: 7.852 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.394e-05/0.1554, allocations: 16.16 kB / 329.4 MB, free: 7.836 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.95e-05/0.1554, allocations: 16 kB / 329.4 MB, free: 7.82 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000293/0.1557, allocations: 123.4 kB / 329.5 MB, free: 7.688 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009281/0.1566, allocations: 356.2 kB / 329.9 MB, free: 7.367 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001352/0.158, allocations: 2.421 MB / 332.3 MB, free: 4.797 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006441/0.1586, allocations: 68.05 kB / 332.4 MB, free: 4.73 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.012e-05/0.1587, allocations: 59.98 kB / 332.4 MB, free: 4.672 MB / 282.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.0004515/0.1591, allocations: 214.5 kB / 332.7 MB, free: 4.477 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002312/0.1594, allocations: 139.9 kB / 332.8 MB, free: 4.34 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001138/0.1605, allocations: 0.7703 MB / 333.6 MB, free: 3.555 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.906e-06/0.1605, allocations: 12 kB / 333.6 MB, free: 3.543 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.1605, allocations: 4 kB / 333.6 MB, free: 3.539 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.1605, allocations: 3.984 kB / 333.6 MB, free: 3.535 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003079/0.1636, allocations: 2.135 MB / 335.7 MB, free: 1.547 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.1636, allocations: 0 / 335.7 MB, free: 1.547 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006398/0.1643, allocations: 214 kB / 335.9 MB, free: 1.348 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003271/0.1646, allocations: 155.5 kB / 336.1 MB, free: 1.184 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.371e-05/0.1647, allocations: 24 kB / 336.1 MB, free: 1.16 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001231/0.1659, allocations: 2.393 MB / 338.5 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.1659, allocations: 4 kB / 338.5 MB, free: 14.6 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001439/0.1673, allocations: 1.113 MB / 339.6 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003807/0.1677, allocations: 229.3 kB / 339.8 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001514/0.1679, allocations: 24 kB / 339.9 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000445/0.1683, allocations: 35.98 kB / 339.9 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/0.1684, allocations: 84.83 kB / 340 MB, free: 13.09 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.372e-05/0.1685, allocations: 27.38 kB / 340 MB, free: 13.07 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005838/0.1691, allocations: 0.574 MB / 340.6 MB, free: 12.56 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1691, allocations: 0 / 340.6 MB, free: 12.56 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001155/0.1702, allocations: 476 kB / 341 MB, free: 12.1 MB / 298.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.000292/0.1705, allocations: 177.6 kB / 341.2 MB, free: 11.93 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001257/0.1718, allocations: 0.9883 MB / 342.2 MB, free: 11 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.519e-05/0.1718, allocations: 21.81 kB / 342.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006536/0.1725, allocations: 0.5921 MB / 342.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00129/0.1738, allocations: 443.2 kB / 343.2 MB, free: 9.969 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005673/0.1794, allocations: 4.093 MB / 347.3 MB, free: 5.828 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005654/0.18, allocations: 0.5637 MB / 347.9 MB, free: 5.238 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0007198/0.1807, allocations: 251 kB / 348.1 MB, free: 4.988 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008863/0.1816, allocations: 449.1 kB / 348.6 MB, free: 4.543 MB / 298.7 MB Notification: Performance of SimCode: time 7.52e-07/0.1816, allocations: 0 / 348.6 MB, free: 4.543 MB / 298.7 MB Notification: Performance of Templates: time 0.04133/0.2229, allocations: 24.91 MB / 373.5 MB, free: 12.14 MB / 330.7 MB " [Timeout remaining time 660] 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",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.1551104499958456]