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.001443/0.001443, allocations: 92.62 kB / 20.96 MB, free: 3.469 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.001573/0.001573, allocations: 149.4 kB / 24.25 MB, free: 180 kB / 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 1.52/1.52, allocations: 173.4 MB / 200.8 MB, free: 9.297 MB / 186.7 MB " [Timeout remaining time 178] 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.1.|smpm.is.2.|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.1.|smpm.is.2.|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.854e-06/1.854e-06, allocations: 0 / 267.3 MB, free: 6.699 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.969e-05/3.154e-05, allocations: 2.312 kB / 267.3 MB, free: 6.695 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01979/0.01982, allocations: 13.29 MB / 280.6 MB, free: 9.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01151/0.03133, allocations: 4.843 MB / 285.5 MB, free: 4.48 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002507/0.03384, allocations: 123.2 kB / 285.6 MB, free: 4.359 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003186/0.03702, allocations: 1.063 MB / 286.7 MB, free: 3.289 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004203/0.04122, allocations: 1.327 MB / 288 MB, free: 1.953 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002227/0.04345, allocations: 0.8676 MB / 288.9 MB, free: 1.086 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.114/0.1575, allocations: 3.761 MB / 292.6 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002586/0.1601, allocations: 1.843 MB / 294.5 MB, free: 15 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003705/0.1638, allocations: 2.606 MB / 297.1 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002617/0.1664, allocations: 1.728 MB / 298.8 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007387/0.1671, allocations: 477.5 kB / 299.3 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001339/0.1685, allocations: 0.6645 MB / 299.9 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007905/0.1692, allocations: 1.178 MB / 301.1 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001476/0.1707, allocations: 1.374 MB / 302.5 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004702/0.1754, allocations: 6.328 MB / 308.8 MB, free: 10.42 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.169e-05/0.1754, allocations: 0 / 308.8 MB, free: 10.42 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1754, allocations: 3.719 kB / 308.8 MB, free: 10.42 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001083/0.1755, allocations: 0 / 308.8 MB, free: 10.42 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.007877/0.1834, allocations: 4.218 MB / 313 MB, free: 7.559 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.546e-05/0.1835, allocations: 11.33 kB / 313 MB, free: 7.559 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002748/0.1862, allocations: 0.9796 MB / 314 MB, free: 7.086 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003171/0.1894, allocations: 2.304 MB / 316.3 MB, free: 5.121 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001188/0.1895, allocations: 234.7 kB / 316.6 MB, free: 4.891 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003546/0.1898, allocations: 310.7 kB / 316.9 MB, free: 4.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005287/0.1951, allocations: 4.122 MB / 321 MB, free: 404 kB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.508e-05/0.1952, allocations: 11.14 kB / 321 MB, free: 396 kB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002661/0.1955, allocations: 131 kB / 321.1 MB, free: 268 kB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.917e-05/0.1956, allocations: 150.2 kB / 321.3 MB, free: 116 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006169/0.2017, allocations: 3.379 MB / 324.6 MB, free: 12.73 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02004/0.2218, allocations: 11.49 MB / 336.1 MB, free: 1.156 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003592/0.2254, allocations: 1.685 MB / 337.8 MB, free: 15.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001687/0.2271, allocations: 0.9026 MB / 338.7 MB, free: 14.62 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004468/0.2315, allocations: 2.102 MB / 340.8 MB, free: 12.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.515e-05/0.2316, allocations: 51.02 kB / 340.9 MB, free: 12.47 MB / 298.7 MB Notification: Performance of pre-optimization done (n=108): time 2.755e-06/0.2316, allocations: 0 / 340.9 MB, free: 12.47 MB / 298.7 MB Notification: Performance of matching and sorting (n=142): time 0.01266/0.2442, allocations: 5.824 MB / 346.7 MB, free: 6.637 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.213e-05/0.2443, allocations: 68.72 kB / 346.8 MB, free: 6.559 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002742/0.247, allocations: 1.735 MB / 348.5 MB, free: 4.824 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001044/0.2471, allocations: 53.64 kB / 348.6 MB, free: 4.766 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00133/0.2485, allocations: 1.557 MB / 350.1 MB, free: 3.199 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004855/0.249, allocations: 0.5066 MB / 350.6 MB, free: 2.699 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005724/0.2495, allocations: 331.4 kB / 350.9 MB, free: 2.367 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.2497, allocations: 301.1 kB / 351.2 MB, free: 2.07 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001428/0.2511, allocations: 0.7691 MB / 352 MB, free: 1.301 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001948/0.253, allocations: 1.403 MB / 353.4 MB, free: 15.62 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003475/0.2565, allocations: 2.315 MB / 355.7 MB, free: 13.12 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.011e-05/0.2565, allocations: 4 kB / 355.7 MB, free: 13.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004629/0.2612, allocations: 2.554 MB / 358.3 MB, free: 10.67 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.169e-05/0.2612, allocations: 12 kB / 358.3 MB, free: 10.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.955e-05/0.2612, allocations: 20 kB / 358.3 MB, free: 10.64 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004028/0.2616, allocations: 128.7 kB / 358.4 MB, free: 10.51 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00192/0.2635, allocations: 485.3 kB / 358.9 MB, free: 10.06 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001274/0.2648, allocations: 1.282 MB / 360.2 MB, free: 8.695 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001422/0.2662, allocations: 111.9 kB / 360.3 MB, free: 8.586 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001493/0.2664, allocations: 83.98 kB / 360.4 MB, free: 8.504 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 (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.001789/0.2682, allocations: 0.98 MB / 361.4 MB, free: 7.543 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004389/0.2686, allocations: 242.7 kB / 361.6 MB, free: 7.305 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003715/0.2723, allocations: 1.948 MB / 363.5 MB, free: 5.344 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-05/0.2724, allocations: 16 kB / 363.6 MB, free: 5.328 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/0.2724, allocations: 7.266 kB / 363.6 MB, free: 5.324 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.428e-05/0.2724, allocations: 7.969 kB / 363.6 MB, free: 5.316 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008492/0.2809, allocations: 4.219 MB / 367.8 MB, free: 1.074 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.213e-06/0.2809, allocations: 3.938 kB / 367.8 MB, free: 1.07 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001408/0.2823, allocations: 314.1 kB / 368.1 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003288/0.2826, allocations: 94.78 kB / 368.2 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001073/0.2827, allocations: 31.98 kB / 368.2 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001172/0.2839, allocations: 1.25 MB / 369.5 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.2839, allocations: 4 kB / 369.5 MB, free: 15.3 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005321/0.2892, allocations: 3.117 MB / 372.6 MB, free: 12.13 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001114/0.2903, allocations: 374.6 kB / 373 MB, free: 11.77 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003802/0.2907, allocations: 24 kB / 373 MB, free: 11.74 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001072/0.2918, allocations: 79.91 kB / 373.1 MB, free: 11.66 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002179/0.292, allocations: 100.8 kB / 373.2 MB, free: 11.57 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001003/0.2921, allocations: 39.98 kB / 373.2 MB, free: 11.53 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.002196/0.2943, allocations: 1.156 MB / 374.4 MB, free: 10.38 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2943, allocations: 0 / 374.4 MB, free: 10.38 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001913/0.2962, allocations: 0.5234 MB / 374.9 MB, free: 9.859 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.0003572/0.2966, allocations: 168.5 kB / 375 MB, free: 9.703 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003715/0.3003, allocations: 1.969 MB / 377 MB, free: 7.781 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.3003, allocations: 192 / 377 MB, free: 7.781 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00169/0.302, allocations: 0.9539 MB / 378 MB, free: 6.844 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0024/0.3044, allocations: 498.8 kB / 378.5 MB, free: 6.375 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01098/0.3154, allocations: 5.679 MB / 384.1 MB, free: 0.6211 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002527/0.3179, allocations: 1.709 MB / 385.8 MB, free: 14.88 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.001748/0.3196, allocations: 0.4962 MB / 386.3 MB, free: 14.38 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005737/0.3202, allocations: 144.5 kB / 386.5 MB, free: 14.24 MB / 346.7 MB Notification: Performance of SimCode: time 1.452e-06/0.3202, allocations: 0 / 386.5 MB, free: 14.24 MB / 346.7 MB Notification: Performance of Templates: time 0.04982/0.37, allocations: 24.4 MB / 410.9 MB, free: 6.262 MB / 362.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.443126940052025]