Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.001006/0.001006, allocations: 83.89 kB / 21.19 MB, free: 3.387 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.001572/0.001572, allocations: 145.1 kB / 24.54 MB, free: 36 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 0.8702/0.8702, allocations: 173.3 MB / 201.2 MB, free: 9.336 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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 268 MB, free: 6.398 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.225e-05/1.378e-05, allocations: 2.312 kB / 268 MB, free: 6.395 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1364/0.1365, allocations: 38.74 MB / 306.8 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01863/0.1551, allocations: 10.36 MB / 317.1 MB, free: 6.363 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007483/0.1626, allocations: 365.3 kB / 317.5 MB, free: 6.238 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0112/0.1738, allocations: 9.107 MB / 326.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0105/0.1843, allocations: 3.6 MB / 330.2 MB, free: 12.5 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005292/0.1896, allocations: 2.346 MB / 332.6 MB, free: 10.16 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01463/0.2042, allocations: 13.42 MB / 346 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02462/0.2288, allocations: 17.19 MB / 363.2 MB, free: 11.34 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01518/0.244, allocations: 10.64 MB / 373.8 MB, free: 0.6797 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01092/0.2549, allocations: 7.4 MB / 381.2 MB, free: 9.266 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004747/0.2596, allocations: 1.938 MB / 383.1 MB, free: 7.328 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006877/0.2665, allocations: 2.335 MB / 385.5 MB, free: 4.992 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.005723/0.2722, allocations: 4.071 MB / 389.5 MB, free: 0.9102 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009344/0.2816, allocations: 5.111 MB / 394.7 MB, free: 11.79 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01555/0.2971, allocations: 12.54 MB / 407.2 MB, free: 15.21 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.2971, allocations: 0 / 407.2 MB, free: 15.21 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2971, allocations: 4 kB / 407.2 MB, free: 15.21 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0005414/0.2977, allocations: 0 / 407.2 MB, free: 15.21 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.02596/0.3236, allocations: 16.01 MB / 423.2 MB, free: 15.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.3237, allocations: 12.92 kB / 423.2 MB, free: 15.06 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01881/0.3425, allocations: 7.965 MB / 431.2 MB, free: 7.082 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2491/0.5916, allocations: 7.705 MB / 438.9 MB, free: 79.59 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007462/0.5923, allocations: 0.9039 MB / 439.8 MB, free: 79.56 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00272/0.5951, allocations: 1.196 MB / 441 MB, free: 79.56 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02767/0.6227, allocations: 10.24 MB / 451.2 MB, free: 78.62 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000538/0.6233, allocations: 21.34 kB / 451.3 MB, free: 78.62 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002038/0.6253, allocations: 0.4936 MB / 451.7 MB, free: 78.62 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004498/0.6258, allocations: 0.642 MB / 452.4 MB, free: 78.59 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01796/0.6437, allocations: 5.383 MB / 457.8 MB, free: 78.43 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05384/0.6976, allocations: 47.36 MB / 0.4933 GB, free: 41.92 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00817/0.7057, allocations: 8.772 MB / 0.5019 GB, free: 34.77 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002177/0.7079, allocations: 1.676 MB / 0.5035 GB, free: 33.09 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007617/0.7155, allocations: 5.563 MB / 0.5089 GB, free: 27.75 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.85e-05/0.7156, allocations: 72.14 kB / 0.509 GB, free: 27.67 MB / 378.8 MB Notification: Performance of pre-optimization done (n=349): time 4.529e-06/0.7156, allocations: 0 / 0.509 GB, free: 27.67 MB / 378.8 MB Notification: Performance of matching and sorting (n=389): time 0.01719/0.7328, allocations: 10.7 MB / 0.5194 GB, free: 17.49 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.78e-05/0.7328, allocations: 90.47 kB / 0.5195 GB, free: 17.39 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004296/0.7371, allocations: 4.415 MB / 0.5238 GB, free: 13.09 MB / 378.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0002839/0.7374, allocations: 89.7 kB / 0.5239 GB, free: 13 MB / 378.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.00195/0.7393, allocations: 5.896 MB / 0.5297 GB, free: 7.336 MB / 378.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007489/0.7401, allocations: 1.447 MB / 0.5311 GB, free: 5.906 MB / 378.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001184/0.7413, allocations: 1.452 MB / 0.5325 GB, free: 4.441 MB / 378.8 MB Notification: Performance of setup shared object (initialization): time 3.448e-05/0.7413, allocations: 484.7 kB / 0.533 GB, free: 3.965 MB / 378.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001457/0.7427, allocations: 0.9579 MB / 0.5339 GB, free: 3.004 MB / 378.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003149/0.7459, allocations: 5.419 MB / 0.5392 GB, free: 11.7 MB / 394.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006421/0.7523, allocations: 7.054 MB / 0.5461 GB, free: 3.102 MB / 394.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.27e-05/0.7524, allocations: 28 kB / 0.5461 GB, free: 3.074 MB / 394.8 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.008896/0.7613, allocations: 6.117 MB / 0.5521 GB, free: 13.55 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.218e-05/0.7614, allocations: 48 kB / 0.5521 GB, free: 13.51 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.756e-05/0.7615, allocations: 104 kB / 0.5522 GB, free: 13.41 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001815/0.7633, allocations: 0.8879 MB / 0.5531 GB, free: 12.5 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003058/0.7663, allocations: 1.568 MB / 0.5546 GB, free: 11.05 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006526/0.7729, allocations: 8.471 MB / 0.5629 GB, free: 2.281 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003166/0.776, allocations: 387.5 kB / 0.5633 GB, free: 1.902 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006057/0.7766, allocations: 348 kB / 0.5636 GB, free: 1.562 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002381/0.779, allocations: 0.6344 MB / 0.5642 GB, free: 1.031 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001004/0.78, allocations: 0.6217 MB / 0.5648 GB, free: 416 kB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005327/0.7853, allocations: 3.628 MB / 0.5684 GB, free: 12.75 MB / 426.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.115e-05/0.7854, allocations: 42.19 kB / 0.5684 GB, free: 12.71 MB / 426.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-05/0.7854, allocations: 12 kB / 0.5684 GB, free: 12.7 MB / 426.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.288e-05/0.7854, allocations: 19.92 kB / 0.5685 GB, free: 12.68 MB / 426.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01849/0.8039, allocations: 11.4 MB / 0.5796 GB, free: 1.297 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.317e-06/0.8039, allocations: 0 / 0.5796 GB, free: 1.297 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001777/0.8057, allocations: 0.7379 MB / 0.5803 GB, free: 0.5938 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1446/0.9502, allocations: 0.7435 MB / 0.581 GB, free: 98.96 MB / 426.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000679/0.9509, allocations: 82.61 kB / 0.5811 GB, free: 98.96 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005176/0.9561, allocations: 7.992 MB / 0.5889 GB, free: 93.59 MB / 426.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.9561, allocations: 10.72 kB / 0.5889 GB, free: 93.59 MB / 426.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007262/0.9633, allocations: 4.546 MB / 0.5934 GB, free: 92.95 MB / 426.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001453/0.9648, allocations: 0.8874 MB / 0.5942 GB, free: 92.95 MB / 426.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000448/0.9652, allocations: 71.81 kB / 0.5943 GB, free: 92.95 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001119/0.9664, allocations: 209.2 kB / 0.5945 GB, free: 92.95 MB / 426.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004152/0.9668, allocations: 281.4 kB / 0.5948 GB, free: 92.94 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001701/0.9669, allocations: 113.2 kB / 0.5949 GB, free: 92.94 MB / 426.8 MB Notification: Performance of sorting global known variables: time 0.002438/0.9694, allocations: 2.04 MB / 0.5969 GB, free: 92.72 MB / 426.8 MB Notification: Performance of sort global known variables: time 2.61e-07/0.9694, allocations: 0 / 0.5969 GB, free: 92.72 MB / 426.8 MB Notification: Performance of remove unused functions: time 0.004143/0.9735, allocations: 1.864 MB / 0.5987 GB, free: 92.72 MB / 426.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (8,38,59.4%), (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.0004589/0.974, allocations: 258.5 kB / 0.5989 GB, free: 92.63 MB / 426.8 MB Notification: Performance of simCode: created initialization part: time 0.005484/0.9795, allocations: 4.646 MB / 0.6035 GB, free: 91.91 MB / 426.8 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.9795, allocations: 4.281 kB / 0.6035 GB, free: 91.91 MB / 426.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002326/0.9818, allocations: 2.284 MB / 0.6057 GB, free: 91.27 MB / 426.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00337/0.9852, allocations: 1.179 MB / 0.6069 GB, free: 91.17 MB / 426.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02076/1.006, allocations: 17.16 MB / 0.6236 GB, free: 84.68 MB / 426.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002559/1.008, allocations: 3.077 MB / 0.6266 GB, free: 84.34 MB / 426.8 MB Notification: Performance of simCode: alias equations: time 0.003333/1.012, allocations: 1.807 MB / 0.6284 GB, free: 84.09 MB / 426.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007641/1.013, allocations: 376.3 kB / 0.6287 GB, free: 84.08 MB / 426.8 MB Notification: Performance of SimCode: time 1.893e-06/1.013, allocations: 0 / 0.6287 GB, free: 84.08 MB / 426.8 MB Notification: Performance of Templates: time 0.08322/1.096, allocations: 66.47 MB / 0.6937 GB, free: 24.05 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_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: 5.16474465560168]