Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.001293/0.001293, allocations: 80.62 kB / 22.21 MB, free: 2.289 MB / 18.57 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.0009734/0.0009734, allocations: 150.8 kB / 25.6 MB, free: 8.867 MB / 18.57 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 0.8942/0.8942, allocations: 173.4 MB / 202.3 MB, free: 8.273 MB / 186.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 269.2 MB, free: 9.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.282e-05/1.42e-05, allocations: 5.406 kB / 269.2 MB, free: 9.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01154/0.01156, allocations: 14.46 MB / 283.7 MB, free: 11.22 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007976/0.01953, allocations: 4.973 MB / 288.7 MB, free: 6.246 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001239/0.02077, allocations: 115.3 kB / 288.8 MB, free: 6.133 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001593/0.02236, allocations: 1.079 MB / 289.9 MB, free: 5.047 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001843/0.02421, allocations: 1.339 MB / 291.2 MB, free: 3.699 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001093/0.0253, allocations: 0.8726 MB / 292.1 MB, free: 2.824 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002472/0.02777, allocations: 3.769 MB / 295.8 MB, free: 15.04 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001714/0.02949, allocations: 1.854 MB / 297.7 MB, free: 13.11 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002459/0.03195, allocations: 2.994 MB / 300.7 MB, free: 10.12 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001399/0.03335, allocations: 1.769 MB / 302.5 MB, free: 8.344 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003602/0.03371, allocations: 468 kB / 302.9 MB, free: 7.887 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006936/0.0344, allocations: 0.6597 MB / 303.6 MB, free: 7.227 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006231/0.03502, allocations: 1.141 MB / 304.7 MB, free: 6.082 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009026/0.03593, allocations: 1.352 MB / 306.1 MB, free: 4.727 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002765/0.03869, allocations: 3.271 MB / 309.3 MB, free: 1.445 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.03869, allocations: 0 / 309.3 MB, free: 1.445 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.03869, allocations: 4 kB / 309.3 MB, free: 1.441 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.832e-05/0.03872, allocations: 0 / 309.3 MB, free: 1.441 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.004557/0.04328, allocations: 4.304 MB / 313.6 MB, free: 13.06 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.003e-05/0.04331, allocations: 8.031 kB / 313.7 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001602/0.04491, allocations: 0.9392 MB / 314.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002208/0.04712, allocations: 2.084 MB / 316.7 MB, free: 9.977 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001158/0.04724, allocations: 234.7 kB / 316.9 MB, free: 9.746 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002818/0.04752, allocations: 312.3 kB / 317.2 MB, free: 9.441 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002273/0.04979, allocations: 2.255 MB / 319.5 MB, free: 7.094 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.053e-05/0.04984, allocations: 11.89 kB / 319.5 MB, free: 7.082 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001769/0.05002, allocations: 132 kB / 319.6 MB, free: 6.953 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.873e-05/0.05012, allocations: 146.2 kB / 319.7 MB, free: 6.809 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001278/0.05139, allocations: 0.9333 MB / 320.7 MB, free: 5.855 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009872/0.06127, allocations: 10.68 MB / 331.4 MB, free: 10.76 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001768/0.06304, allocations: 1.108 MB / 332.5 MB, free: 9.691 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006688/0.0637, allocations: 447.2 kB / 332.9 MB, free: 9.254 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002247/0.06595, allocations: 1.594 MB / 334.5 MB, free: 7.637 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.06598, allocations: 50.33 kB / 334.6 MB, free: 7.578 MB / 314.7 MB Notification: Performance of pre-optimization done (n=107): time 2.545e-06/0.06599, allocations: 0 / 334.6 MB, free: 7.578 MB / 314.7 MB Notification: Performance of matching and sorting (n=141): time 0.005429/0.07142, allocations: 3.048 MB / 337.6 MB, free: 4.492 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.571e-05/0.07145, allocations: 68.72 kB / 337.7 MB, free: 4.414 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001408/0.07286, allocations: 1.475 MB / 339.1 MB, free: 2.926 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.418e-05/0.07292, allocations: 45.7 kB / 339.2 MB, free: 2.875 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009314/0.07385, allocations: 1.668 MB / 340.9 MB, free: 1.188 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003411/0.0742, allocations: 0.5152 MB / 341.4 MB, free: 0.668 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004225/0.07462, allocations: 356.9 kB / 341.7 MB, free: 316 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.1092/0.1838, allocations: 480.8 kB / 342.2 MB, free: 54.65 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005623/0.1844, allocations: 208.8 kB / 342.4 MB, free: 54.64 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006224/0.185, allocations: 1.109 MB / 343.5 MB, free: 53.56 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001034/0.1861, allocations: 1.462 MB / 345 MB, free: 52.52 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.094e-05/0.1861, allocations: 6.531 kB / 345 MB, free: 52.52 MB / 314.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.001804/0.1879, allocations: 1.422 MB / 346.4 MB, free: 52.42 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/0.1879, allocations: 14.36 kB / 346.4 MB, free: 52.42 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.221e-05/0.1879, allocations: 19.66 kB / 346.4 MB, free: 52.42 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002129/0.1881, allocations: 99.83 kB / 346.5 MB, free: 52.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009507/0.1891, allocations: 434.4 kB / 346.9 MB, free: 52.39 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005579/0.1896, allocations: 1.746 MB / 348.7 MB, free: 50.69 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000699/0.1903, allocations: 73.72 kB / 348.8 MB, free: 50.69 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.323e-05/0.1904, allocations: 70.41 kB / 348.8 MB, free: 50.69 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (231): * Single equations (assignments): 228 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005517/0.191, allocations: 275.4 kB / 349.1 MB, free: 50.53 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001953/0.1912, allocations: 236.5 kB / 349.3 MB, free: 50.53 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001117/0.1923, allocations: 0.9706 MB / 350.3 MB, free: 50.4 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.022e-06/0.1923, allocations: 13.78 kB / 350.3 MB, free: 50.4 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.656e-06/0.1923, allocations: 3.406 kB / 350.3 MB, free: 50.4 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.238e-05/0.1923, allocations: 6.938 kB / 350.3 MB, free: 50.4 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003483/0.1958, allocations: 2.716 MB / 353 MB, free: 49.94 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.1958, allocations: 2.062 kB / 353 MB, free: 49.94 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006927/0.1965, allocations: 266.3 kB / 353.3 MB, free: 49.94 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000208/0.1967, allocations: 75.31 kB / 353.4 MB, free: 49.91 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.893e-05/0.1967, allocations: 26.94 kB / 353.4 MB, free: 49.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004422/0.1972, allocations: 1.717 MB / 355.1 MB, free: 48.21 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.1972, allocations: 6.312 kB / 355.1 MB, free: 48.21 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001267/0.1985, allocations: 1.402 MB / 356.5 MB, free: 47.79 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003329/0.1988, allocations: 311.2 kB / 356.8 MB, free: 47.68 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001284/0.1989, allocations: 29.94 kB / 356.9 MB, free: 47.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003676/0.1993, allocations: 40.56 kB / 356.9 MB, free: 47.68 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.281e-05/0.1994, allocations: 97.84 kB / 357 MB, free: 47.68 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.309e-05/0.1994, allocations: 30.06 kB / 357 MB, free: 47.68 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005237/0.1999, allocations: 0.7728 MB / 357.8 MB, free: 47.52 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1999, allocations: 0 / 357.8 MB, free: 47.52 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001019/0.201, allocations: 0.5172 MB / 358.3 MB, free: 47.52 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (140): * Single equations (assignments): 137 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.0002288/0.2012, allocations: 178.9 kB / 358.5 MB, free: 47.43 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001097/0.2023, allocations: 1.099 MB / 359.6 MB, free: 47.2 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.2023, allocations: 0 / 359.6 MB, free: 47.2 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004792/0.2028, allocations: 0.62 MB / 360.2 MB, free: 46.98 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001066/0.2038, allocations: 467 kB / 360.7 MB, free: 46.95 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005352/0.2092, allocations: 4.862 MB / 365.5 MB, free: 44.85 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004752/0.2097, allocations: 0.7518 MB / 366.3 MB, free: 44.45 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000665/0.2103, allocations: 283.7 kB / 366.6 MB, free: 44.23 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000706/0.211, allocations: 0.5223 MB / 367.1 MB, free: 43.8 MB / 314.7 MB Notification: Performance of SimCode: time 1.112e-06/0.211, allocations: 2.078 kB / 367.1 MB, free: 43.8 MB / 314.7 MB Notification: Performance of Templates: time 0.03505/0.2461, allocations: 25.2 MB / 392.3 MB, free: 20.94 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/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.49360341578722]