Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.001049/0.001049, allocations: 91.5 kB / 21.2 MB, free: 3.375 MB / 18.57 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.0009576/0.0009576, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 18.57 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 0.9424/0.9424, allocations: 177 MB / 204.8 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 179] 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.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_trunk_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_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.202e-06/1.202e-06, allocations: 0 / 273 MB, free: 1.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.347e-05/1.467e-05, allocations: 2.312 kB / 273 MB, free: 1.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1354/0.1354, allocations: 39.38 MB / 312.3 MB, free: 7.363 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.01591/0.1513, allocations: 10.6 MB / 322.9 MB, free: 15.48 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003867/0.1552, allocations: 371.8 kB / 323.3 MB, free: 15.36 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00978/0.165, allocations: 9.112 MB / 332.4 MB, free: 6.754 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00578/0.1708, allocations: 3.588 MB / 336 MB, free: 3.145 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003141/0.1739, allocations: 2.393 MB / 338.4 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01007/0.184, allocations: 13.51 MB / 351.9 MB, free: 3.191 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0174/0.2014, allocations: 17.18 MB / 369.1 MB, free: 1.848 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01049/0.2119, allocations: 10.66 MB / 379.8 MB, free: 7.172 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006983/0.2188, allocations: 7.431 MB / 387.2 MB, free: 15.72 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002238/0.2211, allocations: 1.941 MB / 389.1 MB, free: 13.78 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003046/0.2241, allocations: 2.354 MB / 391.5 MB, free: 11.43 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002072/0.2262, allocations: 4.071 MB / 395.6 MB, free: 7.348 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004329/0.2305, allocations: 5.107 MB / 400.7 MB, free: 2.23 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009789/0.2403, allocations: 12.57 MB / 413.2 MB, free: 5.629 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.2403, allocations: 0 / 413.2 MB, free: 5.629 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2403, allocations: 4 kB / 413.2 MB, free: 5.625 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001123/0.2404, allocations: 4 kB / 413.2 MB, free: 5.621 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.0179/0.2583, allocations: 16.07 MB / 429.3 MB, free: 5.426 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.2584, allocations: 11.98 kB / 429.3 MB, free: 5.414 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2396/0.498, allocations: 7.875 MB / 437.2 MB, free: 75 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01133/0.5093, allocations: 7.734 MB / 444.9 MB, free: 74.55 MB / 378.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006095/0.5099, allocations: 0.9079 MB / 445.8 MB, free: 74.53 MB / 378.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001723/0.5116, allocations: 1.2 MB / 447 MB, free: 74.51 MB / 378.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01686/0.5285, allocations: 10.28 MB / 457.3 MB, free: 73.57 MB / 378.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002551/0.5287, allocations: 22.14 kB / 457.3 MB, free: 73.57 MB / 378.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001037/0.5298, allocations: 499.8 kB / 457.8 MB, free: 73.57 MB / 378.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000468/0.5303, allocations: 0.6443 MB / 458.5 MB, free: 73.52 MB / 378.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01321/0.5435, allocations: 5.423 MB / 463.9 MB, free: 72.68 MB / 378.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04848/0.5919, allocations: 47.44 MB / 0.4994 GB, free: 27.25 MB / 378.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007864/0.5998, allocations: 8.87 MB / 0.508 GB, free: 20.01 MB / 378.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001837/0.6016, allocations: 1.681 MB / 0.5097 GB, free: 18.31 MB / 378.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006375/0.608, allocations: 5.641 MB / 0.5152 GB, free: 12.91 MB / 378.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.551e-05/0.6081, allocations: 76.14 kB / 0.5152 GB, free: 12.82 MB / 378.8 MB Notification: Performance of pre-optimization done (n=349): time 4.548e-06/0.6081, allocations: 0 / 0.5152 GB, free: 12.82 MB / 378.8 MB Notification: Performance of matching and sorting (n=389): time 0.01459/0.6226, allocations: 10.74 MB / 0.5257 GB, free: 2.453 MB / 378.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3e-05/0.6227, allocations: 94.22 kB / 0.5258 GB, free: 2.352 MB / 378.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003673/0.6264, allocations: 4.439 MB / 0.5302 GB, free: 13.89 MB / 394.8 MB Notification: Performance of collectPreVariables (initialization): time 0.00018/0.6265, allocations: 89.7 kB / 0.5302 GB, free: 13.8 MB / 394.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.002904/0.6294, allocations: 5.914 MB / 0.536 GB, free: 7.871 MB / 394.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007576/0.6302, allocations: 1.444 MB / 0.5374 GB, free: 6.445 MB / 394.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001358/0.6316, allocations: 1.46 MB / 0.5389 GB, free: 4.973 MB / 394.8 MB Notification: Performance of setup shared object (initialization): time 9.433e-05/0.6316, allocations: 480.8 kB / 0.5393 GB, free: 4.5 MB / 394.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001455/0.6331, allocations: 0.9579 MB / 0.5402 GB, free: 3.539 MB / 394.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003596/0.6367, allocations: 5.43 MB / 0.5455 GB, free: 12.22 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005773/0.6425, allocations: 7.063 MB / 0.5524 GB, free: 3.613 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-05/0.6425, allocations: 28 kB / 0.5525 GB, free: 3.586 MB / 410.8 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.007138/0.6496, allocations: 6.138 MB / 0.5585 GB, free: 14.05 MB / 426.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.617e-05/0.6497, allocations: 48.62 kB / 0.5585 GB, free: 14 MB / 426.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.974e-05/0.6497, allocations: 100 kB / 0.5586 GB, free: 13.9 MB / 426.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001648/0.6514, allocations: 0.8875 MB / 0.5595 GB, free: 13 MB / 426.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003152/0.6545, allocations: 1.57 MB / 0.561 GB, free: 11.54 MB / 426.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006195/0.6607, allocations: 8.471 MB / 0.5693 GB, free: 2.777 MB / 426.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002113/0.6629, allocations: 391.6 kB / 0.5697 GB, free: 2.395 MB / 426.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003215/0.6632, allocations: 356 kB / 0.57 GB, free: 2.047 MB / 426.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.001929/0.6651, allocations: 0.6288 MB / 0.5706 GB, free: 1.523 MB / 426.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006666/0.6658, allocations: 0.6257 MB / 0.5712 GB, free: 0.8945 MB / 426.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005047/0.6708, allocations: 3.624 MB / 0.5748 GB, free: 13.25 MB / 442.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.808e-05/0.6708, allocations: 44 kB / 0.5748 GB, free: 13.2 MB / 442.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.6708, allocations: 12 kB / 0.5748 GB, free: 13.19 MB / 442.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.227e-05/0.6709, allocations: 19.92 kB / 0.5748 GB, free: 13.17 MB / 442.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01483/0.6857, allocations: 11.45 MB / 0.586 GB, free: 1.746 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.746e-06/0.6857, allocations: 4.375 kB / 0.586 GB, free: 1.742 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001645/0.6873, allocations: 0.7362 MB / 0.5867 GB, free: 1.039 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001483/0.6888, allocations: 0.746 MB / 0.5875 GB, free: 280 kB / 442.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001886/0.689, allocations: 83.97 kB / 0.5875 GB, free: 196 kB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1537/0.8427, allocations: 7.993 MB / 0.5954 GB, free: 100.4 MB / 442.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.8427, allocations: 6.25 kB / 0.5954 GB, free: 100.4 MB / 442.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008177/0.8509, allocations: 4.579 MB / 0.5998 GB, free: 99.71 MB / 442.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001501/0.8524, allocations: 0.9012 MB / 0.6007 GB, free: 99.71 MB / 442.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004571/0.8528, allocations: 70 kB / 0.6008 GB, free: 99.71 MB / 442.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001183/0.854, allocations: 202.9 kB / 0.601 GB, free: 99.71 MB / 442.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003839/0.8544, allocations: 287.6 kB / 0.6012 GB, free: 99.7 MB / 442.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001861/0.8546, allocations: 116.5 kB / 0.6014 GB, free: 99.7 MB / 442.8 MB Notification: Performance of sorting global known variables: time 0.002451/0.857, allocations: 2.058 MB / 0.6034 GB, free: 99.48 MB / 442.8 MB Notification: Performance of sort global known variables: time 1.9e-07/0.857, allocations: 0 / 0.6034 GB, free: 99.48 MB / 442.8 MB Notification: Performance of remove unused functions: time 0.004555/0.8616, allocations: 1.864 MB / 0.6052 GB, free: 99.48 MB / 442.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.0004814/0.8621, allocations: 275.1 kB / 0.6054 GB, free: 99.39 MB / 442.8 MB Notification: Performance of simCode: created initialization part: time 0.00527/0.8673, allocations: 4.645 MB / 0.61 GB, free: 98.68 MB / 442.8 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.8673, allocations: 0 / 0.61 GB, free: 98.68 MB / 442.8 MB Notification: Performance of simCode: created simulation system equations: time 0.002119/0.8695, allocations: 2.29 MB / 0.6122 GB, free: 98.04 MB / 442.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002694/0.8722, allocations: 1.206 MB / 0.6134 GB, free: 97.95 MB / 442.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01979/0.892, allocations: 17.13 MB / 0.6301 GB, free: 91.45 MB / 442.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001886/0.8938, allocations: 3.078 MB / 0.6331 GB, free: 91.12 MB / 442.8 MB Notification: Performance of simCode: alias equations: time 0.002913/0.8968, allocations: 1.811 MB / 0.6349 GB, free: 90.87 MB / 442.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007304/0.8975, allocations: 396.6 kB / 0.6353 GB, free: 90.86 MB / 442.8 MB Notification: Performance of SimCode: time 1.884e-06/0.8975, allocations: 0 / 0.6353 GB, free: 90.86 MB / 442.8 MB Notification: Performance of Templates: time 0.07421/0.9717, allocations: 67.3 MB / 0.701 GB, free: 32.1 MB / 442.8 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.151115318760276]