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.0009789/0.0009789, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.0009941/0.0009941, allocations: 147.6 kB / 24.9 MB, free: 8.727 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.9035/0.9035, allocations: 173.4 MB / 201.5 MB, free: 8.727 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.392e-06/1.392e-06, allocations: 0 / 268.5 MB, free: 5.938 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.648e-05/1.787e-05, allocations: 6.25 kB / 268.5 MB, free: 5.93 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01116/0.01118, allocations: 14.52 MB / 283.1 MB, free: 7.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007308/0.01848, allocations: 5.195 MB / 288.3 MB, free: 2.125 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009256/0.01941, allocations: 127.2 kB / 288.4 MB, free: 2 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00171/0.02112, allocations: 1.087 MB / 289.5 MB, free: 0.9062 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.139/0.1601, allocations: 1.34 MB / 290.8 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001718/0.1618, allocations: 0.8764 MB / 291.7 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002784/0.1646, allocations: 3.764 MB / 295.4 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001679/0.1663, allocations: 1.898 MB / 297.3 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00279/0.1691, allocations: 2.976 MB / 300.3 MB, free: 14.02 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001865/0.1709, allocations: 1.783 MB / 302.1 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006349/0.1716, allocations: 467.5 kB / 302.6 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000919/0.1725, allocations: 0.6672 MB / 303.2 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004847/0.173, allocations: 1.141 MB / 304.4 MB, free: 12.81 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009026/0.1739, allocations: 1.35 MB / 305.7 MB, free: 12.19 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002077/0.1759, allocations: 3.274 MB / 309 MB, free: 10.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.1759, allocations: 8 kB / 309 MB, free: 10.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.176, allocations: 0 / 309 MB, free: 10.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.456e-05/0.176, allocations: 0 / 309 MB, free: 10.75 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.003932/0.1799, allocations: 4.031 MB / 313 MB, free: 8.574 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.666e-05/0.18, allocations: 10.17 kB / 313 MB, free: 8.574 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001594/0.1816, allocations: 0.8439 MB / 313.9 MB, free: 8.105 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001508/0.1831, allocations: 1.483 MB / 315.4 MB, free: 6.684 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.205e-05/0.1832, allocations: 238.7 kB / 315.6 MB, free: 6.449 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002293/0.1834, allocations: 311.5 kB / 315.9 MB, free: 6.148 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001888/0.1853, allocations: 2.301 MB / 318.2 MB, free: 3.902 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.943e-05/0.1853, allocations: 6.609 kB / 318.2 MB, free: 3.898 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001562/0.1855, allocations: 131.9 kB / 318.3 MB, free: 3.77 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.528e-05/0.1856, allocations: 149.9 kB / 318.5 MB, free: 3.625 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001146/0.1867, allocations: 0.9345 MB / 319.4 MB, free: 2.676 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01226/0.199, allocations: 8.587 MB / 328 MB, free: 10.36 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001777/0.2007, allocations: 1.047 MB / 329.1 MB, free: 9.34 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006433/0.2014, allocations: 405.9 kB / 329.5 MB, free: 8.957 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002654/0.204, allocations: 1.296 MB / 330.7 MB, free: 7.688 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.956e-05/0.2041, allocations: 47.55 kB / 330.8 MB, free: 7.633 MB / 282.7 MB Notification: Performance of pre-optimization done (n=107): time 3.506e-06/0.2041, allocations: 0 / 330.8 MB, free: 7.633 MB / 282.7 MB Notification: Performance of matching and sorting (n=141): time 0.0071/0.2112, allocations: 3.144 MB / 333.9 MB, free: 4.523 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.923e-05/0.2112, allocations: 68.66 kB / 334 MB, free: 4.445 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001364/0.2126, allocations: 1.253 MB / 335.3 MB, free: 3.43 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.624e-05/0.2127, allocations: 45.7 kB / 335.3 MB, free: 3.379 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007473/0.2134, allocations: 1.33 MB / 336.6 MB, free: 2.113 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003499/0.2138, allocations: 0.4987 MB / 337.1 MB, free: 1.641 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004068/0.2142, allocations: 324 kB / 337.5 MB, free: 1.355 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.168e-05/0.2142, allocations: 301.1 kB / 337.7 MB, free: 1.059 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003834/0.2146, allocations: 210.7 kB / 338 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007111/0.2153, allocations: 0.8146 MB / 338.8 MB, free: 15.81 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001269/0.2166, allocations: 1.212 MB / 340 MB, free: 14.45 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.147e-05/0.2166, allocations: 8 kB / 340 MB, free: 14.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.001709/0.2183, allocations: 1.118 MB / 341.1 MB, free: 13.43 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.649e-05/0.2184, allocations: 16.03 kB / 341.1 MB, free: 13.42 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.379e-05/0.2184, allocations: 20 kB / 341.1 MB, free: 13.4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002298/0.2186, allocations: 88.12 kB / 341.2 MB, free: 13.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001398/0.22, allocations: 484.7 kB / 341.7 MB, free: 12.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007496/0.2208, allocations: 1.19 MB / 342.9 MB, free: 11.61 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008969/0.2217, allocations: 76.03 kB / 343 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001054/0.2218, allocations: 67.92 kB / 343 MB, free: 11.47 MB / 298.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.0006825/0.2224, allocations: 236.9 kB / 343.3 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002344/0.2227, allocations: 151.8 kB / 343.4 MB, free: 11.11 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001275/0.224, allocations: 0.7994 MB / 344.2 MB, free: 10.3 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.224, allocations: 16 kB / 344.2 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.224, allocations: 4 kB / 344.2 MB, free: 10.28 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.342e-05/0.224, allocations: 7.969 kB / 344.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003687/0.2277, allocations: 2.212 MB / 346.4 MB, free: 8.234 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.203e-06/0.2277, allocations: 4.25 kB / 346.5 MB, free: 8.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001027/0.2287, allocations: 308.1 kB / 346.8 MB, free: 7.945 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001805/0.2289, allocations: 66.52 kB / 346.8 MB, free: 7.871 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.695e-05/0.229, allocations: 20 kB / 346.8 MB, free: 7.852 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006659/0.2296, allocations: 1.168 MB / 348 MB, free: 6.613 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.2296, allocations: 4 kB / 348 MB, free: 6.609 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001631/0.2313, allocations: 1.147 MB / 349.2 MB, free: 5.43 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004949/0.2318, allocations: 214.7 kB / 349.4 MB, free: 5.219 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001646/0.2319, allocations: 28 kB / 349.4 MB, free: 5.191 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005052/0.2324, allocations: 35.98 kB / 349.4 MB, free: 5.156 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001588/0.2326, allocations: 96.73 kB / 349.5 MB, free: 5.066 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.645e-05/0.2326, allocations: 27.98 kB / 349.5 MB, free: 5.039 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0007026/0.2333, allocations: 0.6196 MB / 350.2 MB, free: 4.5 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2333, allocations: 0 / 350.2 MB, free: 4.5 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001513/0.2349, allocations: 0.5156 MB / 350.7 MB, free: 3.984 MB / 298.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.0002609/0.2351, allocations: 147.2 kB / 350.8 MB, free: 3.848 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001417/0.2365, allocations: 0.9509 MB / 351.8 MB, free: 2.973 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.094e-05/0.2366, allocations: 25.81 kB / 351.8 MB, free: 2.945 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006401/0.2372, allocations: 0.4958 MB / 352.3 MB, free: 2.469 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001284/0.2385, allocations: 482.2 kB / 352.8 MB, free: 2.016 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006547/0.2451, allocations: 4.792 MB / 357.6 MB, free: 13.18 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005749/0.2456, allocations: 0.6332 MB / 358.2 MB, free: 12.52 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.00099/0.2466, allocations: 280.7 kB / 358.5 MB, free: 12.25 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008654/0.2475, allocations: 479.1 kB / 358.9 MB, free: 11.77 MB / 314.7 MB Notification: Performance of SimCode: time 1.502e-06/0.2475, allocations: 0 / 358.9 MB, free: 11.77 MB / 314.7 MB Notification: Performance of Templates: time 0.0335/0.281, allocations: 24.94 MB / 383.9 MB, free: 3.309 MB / 330.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 -s gbode -gbm=radauIIA3 -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.1583160581067204]