Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 115.9 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001455/0.001455, allocations: 213.4 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.542/1.542, allocations: 230.6 MB / 257.5 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.1.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.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001616/0.001616, allocations: 51.91 kB / 378.3 MB, free: 2.562 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.266/0.2676, allocations: 53.35 MB / 431.7 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.05653/0.3242, allocations: 40.34 MB / 472 MB, free: 14.41 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02695/0.3511, allocations: 10.69 MB / 482.7 MB, free: 3.684 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009504/0.3606, allocations: 373.9 kB / 483.1 MB, free: 3.316 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02294/0.3836, allocations: 8.663 MB / 491.7 MB, free: 10.63 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01499/0.3986, allocations: 3.574 MB / 495.3 MB, free: 7.047 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008841/0.4074, allocations: 2.424 MB / 497.7 MB, free: 4.625 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02135/0.4287, allocations: 13.05 MB / 0.4988 GB, free: 7.535 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03844/0.4672, allocations: 17.36 MB / 0.5158 GB, free: 6.023 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01382/0.481, allocations: 6.99 MB / 0.5226 GB, free: 15.02 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01651/0.4975, allocations: 7.927 MB / 0.5303 GB, free: 7.062 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005799/0.5033, allocations: 1.953 MB / 0.5322 GB, free: 5.109 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007629/0.5109, allocations: 2.375 MB / 0.5346 GB, free: 2.734 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.4242/0.9352, allocations: 3.97 MB / 0.5384 GB, free: 31.39 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01592/0.9511, allocations: 7.563 MB / 0.5458 GB, free: 30.94 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02728/0.9784, allocations: 25.97 MB / 0.5712 GB, free: 24.68 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.9784, allocations: 0 / 0.5712 GB, free: 24.68 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.9784, allocations: 0 / 0.5712 GB, free: 24.68 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006593/0.979, allocations: 0 / 0.5712 GB, free: 24.68 MB / 446.1 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.04444/1.023, allocations: 15.26 MB / 0.5861 GB, free: 14.94 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/1.024, allocations: 6.906 kB / 0.5861 GB, free: 14.94 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03257/1.056, allocations: 6.127 MB / 0.5921 GB, free: 12.12 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01922/1.075, allocations: 8.119 MB / 0.6 GB, free: 7.082 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007402/1.076, allocations: 0.9044 MB / 0.6009 GB, free: 6.453 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005297/1.081, allocations: 1.196 MB / 0.6021 GB, free: 5.27 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04948/1.131, allocations: 18.69 MB / 0.6203 GB, free: 2.52 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005759/1.131, allocations: 23.91 kB / 0.6203 GB, free: 2.496 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004494/1.136, allocations: 0.49 MB / 0.6208 GB, free: 2.016 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008165/1.137, allocations: 0.646 MB / 0.6214 GB, free: 1.367 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04426/1.181, allocations: 16.8 MB / 0.6378 GB, free: 0.5625 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1281/1.309, allocations: 57.26 MB / 0.6938 GB, free: 7.07 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02134/1.33, allocations: 10.37 MB / 0.7039 GB, free: 14.36 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007356/1.338, allocations: 3.405 MB / 0.7072 GB, free: 10.94 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02163/1.359, allocations: 8.545 MB / 0.7156 GB, free: 2.504 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.426e-05/1.359, allocations: 80.53 kB / 0.7156 GB, free: 2.418 MB / 0.545 GB Notification: Performance of pre-optimization done (n=349): time 5.33e-06/1.359, allocations: 0 / 0.7156 GB, free: 2.418 MB / 0.545 GB Notification: Performance of matching and sorting (n=389): time 0.04275/1.402, allocations: 17.28 MB / 0.7325 GB, free: 1.168 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/1.402, allocations: 90.47 kB / 0.7326 GB, free: 1.066 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01162/1.414, allocations: 5.038 MB / 0.7375 GB, free: 12.04 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0007905/1.415, allocations: 89.7 kB / 0.7376 GB, free: 11.94 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.004815/1.42, allocations: 5.643 MB / 0.7431 GB, free: 6.285 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001845/1.421, allocations: 1.417 MB / 0.7445 GB, free: 4.887 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002412/1.424, allocations: 1.331 MB / 0.7458 GB, free: 3.547 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.000147/1.424, allocations: 301.1 kB / 0.7461 GB, free: 3.25 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005029/1.429, allocations: 2.918 MB / 0.7489 GB, free: 336 kB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2261/1.655, allocations: 5.875 MB / 0.7547 GB, free: 199.6 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009778/1.665, allocations: 9.455 MB / 0.7639 GB, free: 195.3 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001367/1.665, allocations: 32.23 kB / 0.7639 GB, free: 195.3 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01482/1.68, allocations: 9.876 MB / 0.7736 GB, free: 192.3 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 7.328e-05/1.68, allocations: 46.41 kB / 0.7736 GB, free: 192.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001333/1.68, allocations: 100.9 kB / 0.7737 GB, free: 192.3 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002173/1.682, allocations: 0.9353 MB / 0.7746 GB, free: 192 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00494/1.687, allocations: 1.591 MB / 0.7762 GB, free: 191.9 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009442/1.697, allocations: 9.881 MB / 0.7858 GB, free: 185.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004897/1.701, allocations: 414.9 kB / 0.7862 GB, free: 185.2 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000726/1.702, allocations: 357.5 kB / 0.7866 GB, free: 185.2 MB / 0.5763 GB 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.006154/1.708, allocations: 4.245 MB / 0.7907 GB, free: 183.1 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009679/1.709, allocations: 0.5396 MB / 0.7912 GB, free: 183.1 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009433/1.719, allocations: 6.457 MB / 0.7975 GB, free: 179 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.259e-05/1.719, allocations: 40 kB / 0.7976 GB, free: 179 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.41e-05/1.719, allocations: 15.94 kB / 0.7976 GB, free: 179 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.349e-05/1.719, allocations: 19.36 kB / 0.7976 GB, free: 179 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02369/1.743, allocations: 15.75 MB / 0.813 GB, free: 166.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.226e-05/1.743, allocations: 7.906 kB / 0.813 GB, free: 166.2 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0031/1.746, allocations: 0.7478 MB / 0.8137 GB, free: 165.6 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001939/1.748, allocations: 0.7878 MB / 0.8145 GB, free: 165 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002876/1.748, allocations: 87.16 kB / 0.8146 GB, free: 164.9 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00878/1.757, allocations: 9.054 MB / 0.8234 GB, free: 156.4 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/1.757, allocations: 6.609 kB / 0.8234 GB, free: 156.4 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01271/1.769, allocations: 9.518 MB / 0.8327 GB, free: 147.1 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002821/1.772, allocations: 1.032 MB / 0.8337 GB, free: 146.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009004/1.773, allocations: 71.09 kB / 0.8338 GB, free: 146 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002352/1.775, allocations: 223.8 kB / 0.834 GB, free: 145.8 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000484/1.776, allocations: 282.5 kB / 0.8343 GB, free: 145.5 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002369/1.776, allocations: 116 kB / 0.8344 GB, free: 145.4 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.004512/1.781, allocations: 3.366 MB / 0.8377 GB, free: 142.1 MB / 0.5763 GB Notification: Performance of sort global known variables: time 2.11e-07/1.781, allocations: 0 / 0.8377 GB, free: 142.1 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.00672/1.787, allocations: 1.882 MB / 0.8395 GB, free: 140.2 MB / 0.5763 GB 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.0006739/1.788, allocations: 261.1 kB / 0.8398 GB, free: 140 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.009719/1.798, allocations: 7.214 MB / 0.8468 GB, free: 132.7 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/1.798, allocations: 0 / 0.8468 GB, free: 132.7 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.004212/1.802, allocations: 3.179 MB / 0.8499 GB, free: 129.5 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005731/1.808, allocations: 1.299 MB / 0.8512 GB, free: 128.2 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0348/1.843, allocations: 20.12 MB / 0.8708 GB, free: 108 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008525/1.851, allocations: 7.325 MB / 0.878 GB, free: 100.7 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005692/1.857, allocations: 2.149 MB / 0.8801 GB, free: 98.52 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001285/1.858, allocations: 427.3 kB / 0.8805 GB, free: 98.1 MB / 0.5763 GB Notification: Performance of SimCode: time 1.102e-06/1.858, allocations: 0 / 0.8805 GB, free: 98.1 MB / 0.5763 GB Notification: Performance of Templates: time 0.1271/1.985, allocations: 78.43 MB / 0.9571 GB, free: 20.45 MB / 0.5763 GB " [Timeout remaining time 658] make -j1 -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.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.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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: 9.28404812514782]