Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002162/0.002162, allocations: 91.61 kB / 20.96 MB, free: 3.441 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002529/0.002529, allocations: 160.9 kB / 24.27 MB, free: 140 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.549/1.549, allocations: 177 MB / 204.5 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_trunk_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.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 272.2 MB, free: 1.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.979e-05/2.142e-05, allocations: 6.312 kB / 272.2 MB, free: 1.797 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02233/0.02235, allocations: 15.47 MB / 287.7 MB, free: 2.254 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1411/0.1634, allocations: 5.241 MB / 292.9 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003411/0.1668, allocations: 126.9 kB / 293.1 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003878/0.1707, allocations: 1.086 MB / 294.1 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005372/0.1761, allocations: 1.323 MB / 295.5 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003084/0.1792, allocations: 0.9113 MB / 296.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.006789/0.186, allocations: 3.804 MB / 300.2 MB, free: 12.74 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003389/0.1894, allocations: 1.847 MB / 302 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006452/0.1958, allocations: 2.645 MB / 304.7 MB, free: 10.71 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00451/0.2003, allocations: 1.899 MB / 306.6 MB, free: 10.11 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00166/0.202, allocations: 480.9 kB / 307 MB, free: 10.11 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003074/0.205, allocations: 0.6935 MB / 307.7 MB, free: 10.01 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00166/0.2067, allocations: 1.192 MB / 308.9 MB, free: 9.145 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003867/0.2106, allocations: 1.393 MB / 310.3 MB, free: 8.379 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007396/0.218, allocations: 6.399 MB / 316.7 MB, free: 3.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.218, allocations: 0 / 316.7 MB, free: 3.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.218, allocations: 0 / 316.7 MB, free: 3.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0002109/0.2182, allocations: 4 kB / 316.7 MB, free: 3.746 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01227/0.2305, allocations: 4.845 MB / 321.6 MB, free: 14.85 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.2305, allocations: 11.98 kB / 321.6 MB, free: 14.84 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003854/0.2344, allocations: 0.9822 MB / 322.6 MB, free: 13.86 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006313/0.2407, allocations: 2.17 MB / 324.7 MB, free: 11.7 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002937/0.241, allocations: 242.2 kB / 325 MB, free: 11.46 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001132/0.2421, allocations: 308.3 kB / 325.3 MB, free: 11.16 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009861/0.252, allocations: 4.073 MB / 329.3 MB, free: 7 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.996e-05/0.2521, allocations: 7.984 kB / 329.3 MB, free: 6.992 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003353/0.2524, allocations: 129.3 kB / 329.5 MB, free: 6.867 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001981/0.2526, allocations: 150.2 kB / 329.6 MB, free: 6.719 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007305/0.2599, allocations: 2.804 MB / 332.4 MB, free: 3.906 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03401/0.2939, allocations: 17.49 MB / 349.9 MB, free: 1.586 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003863/0.2978, allocations: 1.505 MB / 351.4 MB, free: 112 kB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001739/0.2995, allocations: 0.7474 MB / 352.2 MB, free: 15.37 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005654/0.3052, allocations: 2.136 MB / 354.3 MB, free: 13.23 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.837e-05/0.3052, allocations: 46.39 kB / 354.4 MB, free: 13.17 MB / 314.7 MB Notification: Performance of pre-optimization done (n=108): time 3.487e-06/0.3052, allocations: 0 / 354.4 MB, free: 13.17 MB / 314.7 MB Notification: Performance of matching and sorting (n=142): time 0.01263/0.3178, allocations: 4.673 MB / 359 MB, free: 8.461 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.574e-05/0.3179, allocations: 68.72 kB / 359.1 MB, free: 8.379 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003664/0.3216, allocations: 2.133 MB / 361.2 MB, free: 6.234 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002388/0.3218, allocations: 53.7 kB / 361.3 MB, free: 6.176 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001808/0.3236, allocations: 1.77 MB / 363 MB, free: 4.395 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007354/0.3244, allocations: 0.5623 MB / 363.6 MB, free: 3.84 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007273/0.3251, allocations: 421.1 kB / 364 MB, free: 3.422 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002409/0.3253, allocations: 476.8 kB / 364.5 MB, free: 2.953 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001096/0.3264, allocations: 0.5231 MB / 365 MB, free: 2.43 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002015/0.3284, allocations: 1.487 MB / 366.5 MB, free: 0.5664 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003429/0.3319, allocations: 2.178 MB / 368.7 MB, free: 14.03 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-05/0.3319, allocations: 8 kB / 368.7 MB, free: 14.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004385/0.3363, allocations: 2.08 MB / 370.8 MB, free: 11.92 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.37e-05/0.3363, allocations: 16 kB / 370.8 MB, free: 11.9 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.161e-05/0.3364, allocations: 16.81 kB / 370.8 MB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004697/0.3368, allocations: 138.9 kB / 370.9 MB, free: 11.74 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001918/0.3387, allocations: 483.2 kB / 371.4 MB, free: 11.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001642/0.3404, allocations: 1.814 MB / 373.2 MB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001613/0.342, allocations: 107.9 kB / 373.3 MB, free: 9.223 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001665/0.3422, allocations: 87.98 kB / 373.4 MB, free: 9.137 MB / 330.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 (232): * Single equations (assignments): 229 * 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.002074/0.3442, allocations: 0.8551 MB / 374.3 MB, free: 8.27 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005405/0.3448, allocations: 242.7 kB / 374.5 MB, free: 8.031 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003141/0.3479, allocations: 1.465 MB / 376 MB, free: 6.539 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.142e-05/0.348, allocations: 12 kB / 376 MB, free: 6.527 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/0.348, allocations: 4 kB / 376 MB, free: 6.523 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.753e-05/0.348, allocations: 7.969 kB / 376 MB, free: 6.516 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009404/0.3574, allocations: 4.693 MB / 380.7 MB, free: 1.766 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.229e-05/0.3574, allocations: 7.984 kB / 380.7 MB, free: 1.758 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001423/0.3589, allocations: 303.6 kB / 381 MB, free: 1.461 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003441/0.3592, allocations: 111.2 kB / 381.1 MB, free: 1.34 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.689e-05/0.3593, allocations: 35.98 kB / 381.1 MB, free: 1.305 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001542/0.3608, allocations: 1.771 MB / 382.9 MB, free: 15.41 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.3608, allocations: 4 kB / 382.9 MB, free: 15.41 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004685/0.3655, allocations: 2.32 MB / 385.2 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001182/0.3667, allocations: 354.5 kB / 385.6 MB, free: 12.67 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002559/0.367, allocations: 28 kB / 385.6 MB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009623/0.3679, allocations: 79.91 kB / 385.7 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002052/0.3681, allocations: 89.08 kB / 385.8 MB, free: 12.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.699e-05/0.3682, allocations: 39.98 kB / 385.8 MB, free: 12.44 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002133/0.3704, allocations: 1.207 MB / 387 MB, free: 11.24 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3704, allocations: 0 / 387 MB, free: 11.24 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001981/0.3723, allocations: 0.5273 MB / 387.5 MB, free: 10.71 MB / 346.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 (141): * Single equations (assignments): 138 * 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.0003909/0.3727, allocations: 176.2 kB / 387.7 MB, free: 10.53 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003523/0.3763, allocations: 1.719 MB / 389.4 MB, free: 8.785 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.688e-06/0.3763, allocations: 0 / 389.4 MB, free: 8.785 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001631/0.3779, allocations: 0.8788 MB / 390.3 MB, free: 7.879 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002611/0.3805, allocations: 0.4924 MB / 390.8 MB, free: 7.418 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01011/0.3906, allocations: 5.272 MB / 396.1 MB, free: 2.059 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002113/0.3927, allocations: 1.608 MB / 397.7 MB, free: 420 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.00154/0.3943, allocations: 424.5 kB / 398.1 MB, free: 15.99 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004593/0.3947, allocations: 148.5 kB / 398.2 MB, free: 15.84 MB / 362.7 MB Notification: Performance of SimCode: time 1.333e-06/0.3947, allocations: 0 / 398.2 MB, free: 15.84 MB / 362.7 MB Notification: Performance of Templates: time 0.05077/0.4455, allocations: 24.76 MB / 423 MB, free: 7.461 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.779217835050076]