Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.00147/0.00147, allocations: 84.34 kB / 20.95 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.002408/0.002408, allocations: 169.3 kB / 24.26 MB, free: 148 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.516/1.516, allocations: 177.2 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.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_4.1.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.1.|smpm.is.2.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.563e-06/1.563e-06, allocations: 0 / 272.3 MB, free: 1.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.229e-05/2.386e-05, allocations: 2.312 kB / 272.3 MB, free: 1.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01834/0.01836, allocations: 13.81 MB / 286.1 MB, free: 3.926 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.1397/0.1581, allocations: 5.079 MB / 291.2 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002714/0.1608, allocations: 123.9 kB / 291.3 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003094/0.1639, allocations: 1.08 MB / 292.4 MB, free: 14.79 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004773/0.1687, allocations: 1.315 MB / 293.7 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002726/0.1714, allocations: 0.9079 MB / 294.7 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005085/0.1765, allocations: 3.806 MB / 298.5 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002568/0.179, allocations: 1.833 MB / 300.3 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003961/0.183, allocations: 2.62 MB / 302.9 MB, free: 11.54 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002396/0.1854, allocations: 1.73 MB / 304.6 MB, free: 11 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006738/0.1861, allocations: 477.5 kB / 305.1 MB, free: 11 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001398/0.1875, allocations: 0.6971 MB / 305.8 MB, free: 10.93 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007612/0.1882, allocations: 1.174 MB / 307 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001428/0.1896, allocations: 1.374 MB / 308.4 MB, free: 9.469 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004763/0.1944, allocations: 6.369 MB / 314.7 MB, free: 4.906 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1944, allocations: 4 kB / 314.7 MB, free: 4.902 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1944, allocations: 3.844 kB / 314.7 MB, free: 4.902 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000104/0.1945, allocations: 0 / 314.7 MB, free: 4.902 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.00807/0.2026, allocations: 4.24 MB / 319 MB, free: 0.6211 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.158e-05/0.2026, allocations: 8.031 kB / 319 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003197/0.2058, allocations: 0.9877 MB / 320 MB, free: 15.63 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004803/0.2106, allocations: 2.296 MB / 322.3 MB, free: 13.39 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000238/0.2109, allocations: 240.2 kB / 322.5 MB, free: 13.16 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005916/0.2115, allocations: 322 kB / 322.8 MB, free: 12.85 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008002/0.2195, allocations: 4.125 MB / 326.9 MB, free: 8.656 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.122e-05/0.2195, allocations: 4 kB / 326.9 MB, free: 8.652 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003364/0.2199, allocations: 133.3 kB / 327.1 MB, free: 8.523 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001781/0.2201, allocations: 142.2 kB / 327.2 MB, free: 8.383 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006602/0.2267, allocations: 3.38 MB / 330.6 MB, free: 5 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02074/0.2474, allocations: 11.56 MB / 342.2 MB, free: 9.352 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003827/0.2512, allocations: 1.76 MB / 343.9 MB, free: 7.656 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001776/0.253, allocations: 0.9318 MB / 344.8 MB, free: 6.723 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004766/0.2578, allocations: 2.163 MB / 347 MB, free: 4.566 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.993e-05/0.2578, allocations: 51.55 kB / 347.1 MB, free: 4.508 MB / 298.7 MB Notification: Performance of pre-optimization done (n=108): time 3.387e-06/0.2578, allocations: 0 / 347.1 MB, free: 4.508 MB / 298.7 MB Notification: Performance of matching and sorting (n=142): time 0.01328/0.2711, allocations: 5.844 MB / 352.9 MB, free: 14.66 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.298e-05/0.2712, allocations: 68.19 kB / 353 MB, free: 14.59 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002861/0.274, allocations: 1.748 MB / 354.7 MB, free: 12.84 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001118/0.2741, allocations: 45.7 kB / 354.8 MB, free: 12.79 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001405/0.2755, allocations: 1.572 MB / 356.3 MB, free: 11.2 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005118/0.2761, allocations: 0.501 MB / 356.8 MB, free: 10.71 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006065/0.2767, allocations: 335.4 kB / 357.2 MB, free: 10.38 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001579/0.2768, allocations: 301.1 kB / 357.5 MB, free: 10.08 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001407/0.2782, allocations: 0.773 MB / 358.2 MB, free: 9.305 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002101/0.2803, allocations: 1.401 MB / 359.6 MB, free: 7.637 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003585/0.2839, allocations: 2.316 MB / 361.9 MB, free: 5.133 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.434e-05/0.2839, allocations: 8 kB / 362 MB, free: 5.125 MB / 314.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004744/0.2887, allocations: 2.555 MB / 364.5 MB, free: 2.676 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.907e-05/0.2887, allocations: 16 kB / 364.5 MB, free: 2.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.313e-05/0.2887, allocations: 20.78 kB / 364.5 MB, free: 2.641 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004033/0.2891, allocations: 118.5 kB / 364.7 MB, free: 2.516 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001896/0.291, allocations: 487.2 kB / 365.1 MB, free: 2.039 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001374/0.2924, allocations: 1.287 MB / 366.4 MB, free: 0.6484 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001466/0.2939, allocations: 123.8 kB / 366.5 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001648/0.294, allocations: 76 kB / 366.6 MB, free: 464 kB / 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 (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.00181/0.2958, allocations: 0.9852 MB / 367.6 MB, free: 15.46 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006029/0.2964, allocations: 242.7 kB / 367.8 MB, free: 15.22 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003858/0.3003, allocations: 1.953 MB / 369.8 MB, free: 13.25 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.677e-05/0.3003, allocations: 16 kB / 369.8 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.3003, allocations: 0 / 369.8 MB, free: 13.23 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.701e-05/0.3003, allocations: 7.969 kB / 369.8 MB, free: 13.22 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008441/0.3088, allocations: 4.244 MB / 374.1 MB, free: 8.934 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.358e-06/0.3088, allocations: 4 kB / 374.1 MB, free: 8.93 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001459/0.3103, allocations: 303.6 kB / 374.4 MB, free: 8.633 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003555/0.3106, allocations: 102.7 kB / 374.5 MB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001039/0.3107, allocations: 28 kB / 374.5 MB, free: 8.496 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001176/0.3119, allocations: 1.25 MB / 375.7 MB, free: 7.145 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.3119, allocations: 4 kB / 375.7 MB, free: 7.141 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005321/0.3172, allocations: 3.122 MB / 378.9 MB, free: 3.969 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00106/0.3183, allocations: 366.6 kB / 379.2 MB, free: 3.609 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004638/0.3187, allocations: 28 kB / 379.2 MB, free: 3.582 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001251/0.32, allocations: 75.91 kB / 379.3 MB, free: 3.508 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002364/0.3202, allocations: 101 kB / 379.4 MB, free: 3.406 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001064/0.3203, allocations: 39.98 kB / 379.5 MB, free: 3.367 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00257/0.3229, allocations: 1.16 MB / 380.6 MB, free: 2.215 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3229, allocations: 0 / 380.6 MB, free: 2.215 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002299/0.3252, allocations: 0.539 MB / 381.2 MB, free: 1.676 MB / 330.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.0004584/0.3257, allocations: 173.9 kB / 381.3 MB, free: 1.5 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00398/0.3296, allocations: 1.968 MB / 383.3 MB, free: 15.52 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/0.3296, allocations: 7.938 kB / 383.3 MB, free: 15.51 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001823/0.3315, allocations: 0.9489 MB / 384.3 MB, free: 14.54 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00305/0.3345, allocations: 0.4965 MB / 384.8 MB, free: 14.07 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01191/0.3464, allocations: 5.696 MB / 390.4 MB, free: 8.289 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002748/0.3492, allocations: 1.706 MB / 392.2 MB, free: 6.543 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001759/0.3509, allocations: 0.4965 MB / 392.7 MB, free: 6.043 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005764/0.3515, allocations: 152.5 kB / 392.8 MB, free: 5.891 MB / 346.7 MB Notification: Performance of SimCode: time 1.272e-06/0.3515, allocations: 0 / 392.8 MB, free: 5.891 MB / 346.7 MB Notification: Performance of Templates: time 0.04861/0.4001, allocations: 24.81 MB / 417.6 MB, free: 13.48 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.663371926988475]