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.001951/0.001951, allocations: 91.61 kB / 20.96 MB, free: 3.453 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.001945/0.001945, allocations: 165.3 kB / 24.27 MB, free: 144 kB / 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 1.563/1.563, allocations: 177.1 MB / 204.6 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] 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.1.|smpm.is.2.|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.1.|smpm.is.2.|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.633e-06/1.633e-06, allocations: 0 / 272.3 MB, free: 1.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.401e-05/2.564e-05, allocations: 2.312 kB / 272.3 MB, free: 1.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01572/0.01574, allocations: 10.73 MB / 283.1 MB, free: 7.023 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007426/0.02317, allocations: 3.599 MB / 286.7 MB, free: 3.41 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001049/0.02422, allocations: 87.44 kB / 286.8 MB, free: 3.324 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002013/0.02623, allocations: 0.8227 MB / 287.6 MB, free: 2.496 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003053/0.02928, allocations: 0.9507 MB / 288.5 MB, free: 1.539 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001048/0.03033, allocations: 475.1 kB / 289 MB, free: 1.074 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.115/0.1453, allocations: 3.043 MB / 292 MB, free: 15.65 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002338/0.1477, allocations: 1.513 MB / 293.5 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003244/0.1509, allocations: 2.088 MB / 295.6 MB, free: 15.3 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002666/0.1536, allocations: 1.642 MB / 297.3 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006679/0.1542, allocations: 373.2 kB / 297.6 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001109/0.1554, allocations: 481.7 kB / 298.1 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001056/0.1564, allocations: 1.136 MB / 299.2 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001423/0.1578, allocations: 1.147 MB / 300.4 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004771/0.1626, allocations: 4.989 MB / 305.4 MB, free: 11.99 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.1626, allocations: 0 / 305.4 MB, free: 11.99 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1626, allocations: 1.969 kB / 305.4 MB, free: 11.99 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001348/0.1627, allocations: 0 / 305.4 MB, free: 11.99 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.006599/0.1693, allocations: 3.842 MB / 309.2 MB, free: 9.375 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.1694, allocations: 10.31 kB / 309.2 MB, free: 9.375 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001138/0.1705, allocations: 0.5621 MB / 309.8 MB, free: 9.109 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003034/0.1736, allocations: 1.706 MB / 311.5 MB, free: 8.027 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001097/0.1737, allocations: 187 kB / 311.7 MB, free: 7.941 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003295/0.174, allocations: 255.2 kB / 311.9 MB, free: 7.855 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004255/0.1782, allocations: 3.052 MB / 315 MB, free: 5.078 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.828e-05/0.1783, allocations: 7.953 kB / 315 MB, free: 5.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002038/0.1785, allocations: 110.5 kB / 315.1 MB, free: 4.965 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001022/0.1786, allocations: 120.9 kB / 315.2 MB, free: 4.844 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003215/0.1818, allocations: 1.97 MB / 317.2 MB, free: 2.867 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01996/0.2018, allocations: 11.63 MB / 328.8 MB, free: 6.883 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001537/0.2033, allocations: 0.6738 MB / 329.5 MB, free: 6.211 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009738/0.2043, allocations: 422.2 kB / 329.9 MB, free: 5.797 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002433/0.2046, allocations: 48.97 kB / 330 MB, free: 5.75 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.314e-05/0.2046, allocations: 50.39 kB / 330 MB, free: 5.691 MB / 282.7 MB Notification: Performance of pre-optimization done (n=98): time 2.976e-06/0.2046, allocations: 0 / 330 MB, free: 5.691 MB / 282.7 MB Notification: Performance of matching and sorting (n=123): time 0.01201/0.2166, allocations: 4.098 MB / 334.1 MB, free: 1.578 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.779e-05/0.2167, allocations: 64.41 kB / 334.2 MB, free: 1.504 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003068/0.2197, allocations: 1.952 MB / 336.1 MB, free: 15.54 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001025/0.2199, allocations: 45.7 kB / 336.2 MB, free: 15.48 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00137/0.2212, allocations: 1.499 MB / 337.7 MB, free: 13.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005149/0.2217, allocations: 482.1 kB / 338.1 MB, free: 13.52 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006213/0.2224, allocations: 358 kB / 338.5 MB, free: 13.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002432/0.2226, allocations: 480.8 kB / 338.9 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008563/0.2235, allocations: 375.8 kB / 339.3 MB, free: 12.32 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001602/0.2251, allocations: 1.158 MB / 340.5 MB, free: 10.86 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002822/0.2279, allocations: 1.692 MB / 342.2 MB, free: 8.926 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.147e-05/0.2279, allocations: 8 kB / 342.2 MB, free: 8.918 MB / 298.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003542/0.2314, allocations: 1.678 MB / 343.9 MB, free: 7.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.749e-05/0.2315, allocations: 12 kB / 343.9 MB, free: 7.309 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.428e-05/0.2315, allocations: 16 kB / 343.9 MB, free: 7.293 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005768/0.2321, allocations: 149.5 kB / 344 MB, free: 7.137 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001569/0.2336, allocations: 416.3 kB / 344.4 MB, free: 6.754 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003585/0.2372, allocations: 3.702 MB / 348.1 MB, free: 2.828 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00142/0.2386, allocations: 127.8 kB / 348.3 MB, free: 2.703 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001375/0.2388, allocations: 75.97 kB / 348.3 MB, free: 2.629 MB / 298.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.001321/0.2401, allocations: 0.6461 MB / 349 MB, free: 1.996 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004637/0.2406, allocations: 222.8 kB / 349.2 MB, free: 1.777 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002859/0.2434, allocations: 1.173 MB / 350.4 MB, free: 0.5781 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-05/0.2434, allocations: 12 kB / 350.4 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.2434, allocations: 0 / 350.4 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.2435, allocations: 7.984 kB / 350.4 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008281/0.2517, allocations: 3.857 MB / 354.2 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.044e-05/0.2517, allocations: 4 kB / 354.2 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0012/0.2529, allocations: 258 kB / 354.5 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005426/0.2535, allocations: 134.3 kB / 354.6 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.461e-05/0.2536, allocations: 27.94 kB / 354.7 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003591/0.2572, allocations: 3.666 MB / 358.3 MB, free: 8.336 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.2572, allocations: 7.844 kB / 358.3 MB, free: 8.332 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003727/0.2609, allocations: 1.74 MB / 360.1 MB, free: 6.523 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001011/0.2619, allocations: 326.7 kB / 360.4 MB, free: 6.203 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002241/0.2621, allocations: 31.92 kB / 360.4 MB, free: 6.172 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009476/0.2631, allocations: 91.88 kB / 360.5 MB, free: 6.082 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002102/0.2633, allocations: 80.41 kB / 360.6 MB, free: 6.004 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.016e-05/0.2634, allocations: 35.98 kB / 360.6 MB, free: 5.969 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001888/0.2653, allocations: 1.106 MB / 361.7 MB, free: 4.867 MB / 314.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2653, allocations: 0 / 361.7 MB, free: 4.867 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001885/0.2672, allocations: 492 kB / 362.2 MB, free: 4.387 MB / 314.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.0004192/0.2676, allocations: 197.1 kB / 362.4 MB, free: 4.191 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.003123/0.2707, allocations: 1.577 MB / 364 MB, free: 2.637 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.2707, allocations: 0 / 364 MB, free: 2.637 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001707/0.2724, allocations: 0.9395 MB / 364.9 MB, free: 1.676 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002075/0.2745, allocations: 465.1 kB / 365.4 MB, free: 1.238 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00795/0.2824, allocations: 4.38 MB / 369.8 MB, free: 12.77 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001741/0.2842, allocations: 1.351 MB / 371.1 MB, free: 11.39 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001186/0.2854, allocations: 386.8 kB / 371.5 MB, free: 11.01 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004271/0.2858, allocations: 128.5 kB / 371.6 MB, free: 10.88 MB / 330.7 MB Notification: Performance of SimCode: time 1.232e-06/0.2858, allocations: 0 / 371.6 MB, free: 10.88 MB / 330.7 MB Notification: Performance of Templates: time 0.04901/0.3348, allocations: 24.94 MB / 396.5 MB, free: 2.375 MB / 346.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.541705702082254]