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.001999/0.001999, allocations: 85.58 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001916/0.001916, allocations: 157.5 kB / 23.95 MB, free: 4.168 MB / 14.72 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.474/1.474, allocations: 177 MB / 204.1 MB, free: 9.176 MB / 190.1 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.924e-06/1.924e-06, allocations: 0.6094 kB / 325 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.496e-05/2.688e-05, allocations: 2.281 kB / 325 MB, free: 500 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02067/0.02069, allocations: 13.79 MB / 338.8 MB, free: 6.801 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01437/0.03507, allocations: 5.096 MB / 343.9 MB, free: 2.117 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004797/0.03987, allocations: 127.2 kB / 344.1 MB, free: 1.992 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005272/0.04514, allocations: 1.075 MB / 345.1 MB, free: 0.9102 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007511/0.05265, allocations: 1.312 MB / 346.4 MB, free: 15.59 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004108/0.05676, allocations: 0.8995 MB / 347.3 MB, free: 14.69 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006232/0.06299, allocations: 3.815 MB / 351.2 MB, free: 10.86 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003544/0.06653, allocations: 1.838 MB / 353 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005418/0.07195, allocations: 2.62 MB / 355.6 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004109/0.07606, allocations: 1.738 MB / 357.4 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001306/0.07737, allocations: 476 kB / 357.8 MB, free: 4.129 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002349/0.07972, allocations: 0.6909 MB / 358.5 MB, free: 3.438 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001456/0.08117, allocations: 1.18 MB / 359.7 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003021/0.08419, allocations: 1.38 MB / 361.1 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009425/0.09362, allocations: 6.353 MB / 367.4 MB, free: 10.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.944e-06/0.09363, allocations: 7.875 kB / 367.4 MB, free: 10.49 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.09363, allocations: 0 / 367.4 MB, free: 10.49 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002088/0.09384, allocations: 0 / 367.4 MB, free: 10.49 MB / 334.1 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.01337/0.1072, allocations: 4.244 MB / 371.7 MB, free: 6.188 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/0.1073, allocations: 11.98 kB / 371.7 MB, free: 6.176 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003424/0.1107, allocations: 0.631 MB / 372.3 MB, free: 5.543 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005281/0.116, allocations: 2.217 MB / 374.5 MB, free: 3.277 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002213/0.1162, allocations: 238.7 kB / 374.8 MB, free: 3.043 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006191/0.1168, allocations: 308.3 kB / 375.1 MB, free: 2.742 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008275/0.1251, allocations: 4.126 MB / 379.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.888e-05/0.1252, allocations: 11.88 kB / 379.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003283/0.1255, allocations: 132 kB / 379.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001721/0.1257, allocations: 150.2 kB / 379.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007422/0.1331, allocations: 3.378 MB / 382.9 MB, free: 10.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02394/0.157, allocations: 11.31 MB / 394.2 MB, free: 15.15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003905/0.1609, allocations: 1.753 MB / 395.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001819/0.1628, allocations: 0.9221 MB / 396.8 MB, free: 12.51 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004833/0.1676, allocations: 2.156 MB / 399 MB, free: 10.33 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.532e-05/0.1676, allocations: 43.56 kB / 399 MB, free: 10.28 MB / 366.1 MB Notification: Performance of pre-optimization done (n=108): time 3.577e-06/0.1676, allocations: 0 / 399 MB, free: 10.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=142): time 0.01325/0.1809, allocations: 5.8 MB / 404.8 MB, free: 4.453 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001239/0.181, allocations: 68.66 kB / 404.9 MB, free: 4.371 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003158/0.1842, allocations: 1.752 MB / 406.7 MB, free: 2.617 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002375/0.1844, allocations: 45.7 kB / 406.7 MB, free: 2.566 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001416/0.1858, allocations: 1.575 MB / 408.3 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006601/0.1865, allocations: 0.5035 MB / 408.8 MB, free: 480 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005943/0.1871, allocations: 327.4 kB / 409.1 MB, free: 148 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001897/0.1873, allocations: 305.1 kB / 409.4 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001511/0.1888, allocations: 0.7691 MB / 410.2 MB, free: 15.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002018/0.1908, allocations: 1.4 MB / 411.6 MB, free: 13.4 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0038/0.1946, allocations: 2.316 MB / 413.9 MB, free: 10.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.548e-05/0.1946, allocations: 8 kB / 413.9 MB, free: 10.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004643/0.1993, allocations: 2.479 MB / 416.4 MB, free: 8.312 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.428e-05/0.1993, allocations: 16 kB / 416.4 MB, free: 8.297 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.233e-05/0.1993, allocations: 16 kB / 416.4 MB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004028/0.1997, allocations: 122.5 kB / 416.5 MB, free: 8.152 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002091/0.2018, allocations: 483.4 kB / 417 MB, free: 7.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001409/0.2032, allocations: 1.287 MB / 418.3 MB, free: 6.289 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001737/0.205, allocations: 111.8 kB / 418.4 MB, free: 6.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001669/0.2051, allocations: 84.14 kB / 418.5 MB, free: 6.098 MB / 382.1 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.00196/0.2071, allocations: 0.9876 MB / 419.5 MB, free: 5.102 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004838/0.2076, allocations: 202.7 kB / 419.7 MB, free: 4.902 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003858/0.2114, allocations: 1.956 MB / 421.6 MB, free: 2.918 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.637e-05/0.2114, allocations: 12 kB / 421.6 MB, free: 2.906 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.2115, allocations: 4 kB / 421.6 MB, free: 2.902 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.803e-05/0.2115, allocations: 7.969 kB / 421.6 MB, free: 2.895 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008528/0.22, allocations: 4.231 MB / 425.9 MB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.167e-05/0.22, allocations: 7.984 kB / 425.9 MB, free: 14.58 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001514/0.2215, allocations: 303.8 kB / 426.2 MB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003336/0.2219, allocations: 98.45 kB / 426.3 MB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.302e-05/0.222, allocations: 31.98 kB / 426.3 MB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001176/0.2231, allocations: 1.248 MB / 427.6 MB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.2231, allocations: 4.062 kB / 427.6 MB, free: 12.79 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005377/0.2285, allocations: 3.083 MB / 430.6 MB, free: 9.656 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001206/0.2297, allocations: 366.6 kB / 431 MB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003014/0.23, allocations: 24 kB / 431 MB, free: 9.273 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/0.2311, allocations: 79.91 kB / 431.1 MB, free: 9.195 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002127/0.2313, allocations: 97.12 kB / 431.2 MB, free: 9.102 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.886e-05/0.2314, allocations: 40 kB / 431.2 MB, free: 9.062 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002074/0.2334, allocations: 1.16 MB / 432.4 MB, free: 7.91 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2334, allocations: 0 / 432.4 MB, free: 7.91 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002238/0.2357, allocations: 0.5312 MB / 432.9 MB, free: 7.379 MB / 398.1 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.000438/0.2361, allocations: 178.8 kB / 433.1 MB, free: 7.191 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003944/0.2401, allocations: 1.983 MB / 435.1 MB, free: 5.191 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.038e-05/0.2401, allocations: 0 / 435.1 MB, free: 5.191 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001723/0.2418, allocations: 0.9487 MB / 436 MB, free: 4.227 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002644/0.2444, allocations: 478.7 kB / 436.5 MB, free: 3.77 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01186/0.2563, allocations: 5.592 MB / 442.1 MB, free: 14.11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002373/0.2587, allocations: 1.722 MB / 443.8 MB, free: 12.35 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001749/0.2604, allocations: 0.4926 MB / 444.3 MB, free: 11.86 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00049/0.2609, allocations: 144.5 kB / 444.4 MB, free: 11.71 MB / 414.1 MB Notification: Performance of SimCode: time 1.563e-06/0.2609, allocations: 8 kB / 444.5 MB, free: 11.71 MB / 414.1 MB Notification: Performance of Templates: time 0.05278/0.3137, allocations: 24.67 MB / 469.1 MB, free: 3.324 MB / 430.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 480] 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.579356040805578]