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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",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=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001961/0.001961, allocations: 117.7 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00269/0.00269, allocations: 204.8 kB / 19.4 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.371/2.371, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 55.91 kB / 359.4 MB, free: 12.85 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2743/0.2756, allocations: 50.55 MB / 410 MB, free: 1.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.0417/0.3174, allocations: 40.08 MB / 450.1 MB, free: 9.309 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0238/0.3412, allocations: 10.65 MB / 460.7 MB, free: 14.62 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008341/0.3496, allocations: 307 kB / 461 MB, free: 14.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02017/0.3699, allocations: 8.529 MB / 469.5 MB, free: 5.773 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01311/0.383, allocations: 3.406 MB / 472.9 MB, free: 2.352 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008489/0.3915, allocations: 2.365 MB / 475.3 MB, free: 15.99 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01896/0.4105, allocations: 12.95 MB / 488.2 MB, free: 2.992 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04566/0.4562, allocations: 25.31 MB / 0.5015 GB, free: 9.523 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0121/0.4684, allocations: 6.826 MB / 0.5082 GB, free: 2.684 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01321/0.4816, allocations: 7.841 MB / 0.5158 GB, free: 10.82 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005892/0.4876, allocations: 1.953 MB / 0.5178 GB, free: 8.863 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008033/0.4956, allocations: 2.363 MB / 0.5201 GB, free: 6.5 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007153/0.5028, allocations: 3.955 MB / 0.5239 GB, free: 2.535 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01436/0.5173, allocations: 7.556 MB / 0.5313 GB, free: 10.95 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2855/0.8028, allocations: 25.9 MB / 0.5566 GB, free: 55.69 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.877e-06/0.8029, allocations: 2.938 kB / 0.5566 GB, free: 55.69 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.8029, allocations: 0 / 0.5566 GB, free: 55.69 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0009821/0.8039, allocations: 2.625 kB / 0.5566 GB, free: 55.69 MB / 462.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.05114/0.855, allocations: 15.05 MB / 0.5713 GB, free: 49.16 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.8551, allocations: 14.34 kB / 0.5713 GB, free: 49.16 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03382/0.8889, allocations: 6.153 MB / 0.5773 GB, free: 46.75 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01766/0.9066, allocations: 8.056 MB / 0.5852 GB, free: 43.27 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007477/0.9074, allocations: 0.9035 MB / 0.5861 GB, free: 42.86 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005764/0.9132, allocations: 1.193 MB / 0.5872 GB, free: 42.46 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04966/0.9629, allocations: 18.66 MB / 0.6055 GB, free: 25.75 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005051/0.9634, allocations: 19.89 kB / 0.6055 GB, free: 25.73 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004367/0.9678, allocations: 0.4909 MB / 0.606 GB, free: 25.25 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005909/0.9684, allocations: 0.6382 MB / 0.6066 GB, free: 24.61 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03787/1.006, allocations: 16.76 MB / 0.623 GB, free: 7.836 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1167/1.123, allocations: 58.81 MB / 0.6804 GB, free: 12.52 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02822/1.151, allocations: 33.22 MB / 0.7128 GB, free: 7.41 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007121/1.158, allocations: 3.749 MB / 0.7165 GB, free: 3.648 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02082/1.179, allocations: 8.82 MB / 0.7251 GB, free: 10.84 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.059e-05/1.179, allocations: 72.69 kB / 0.7252 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=349): time 5.089e-06/1.179, allocations: 0 / 0.7252 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of matching and sorting (n=389): time 0.04444/1.224, allocations: 17.57 MB / 0.7423 GB, free: 9.102 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.582e-05/1.224, allocations: 90.47 kB / 0.7424 GB, free: 9 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01069/1.235, allocations: 5.037 MB / 0.7473 GB, free: 3.969 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0009392/1.236, allocations: 89.7 kB / 0.7474 GB, free: 3.875 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.2841/1.52, allocations: 5.45 MB / 0.7527 GB, free: 218.6 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.001906/1.522, allocations: 1.352 MB / 0.7541 GB, free: 218 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003123/1.525, allocations: 1.322 MB / 0.7553 GB, free: 217.9 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.502e-05/1.525, allocations: 303.6 kB / 0.7556 GB, free: 217.6 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004775/1.53, allocations: 2.908 MB / 0.7585 GB, free: 217.5 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006242/1.536, allocations: 5.865 MB / 0.7642 GB, free: 213.1 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0103/1.546, allocations: 9.447 MB / 0.7734 GB, free: 206.2 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001452/1.547, allocations: 30.66 kB / 0.7735 GB, free: 206.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01774/1.564, allocations: 9.848 MB / 0.7831 GB, free: 202.1 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 9.34e-05/1.564, allocations: 46.53 kB / 0.7831 GB, free: 202.1 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000196/1.565, allocations: 105.4 kB / 0.7832 GB, free: 202.1 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002429/1.567, allocations: 0.9332 MB / 0.7841 GB, free: 201.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00597/1.573, allocations: 1.587 MB / 0.7857 GB, free: 201.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01061/1.584, allocations: 10.19 MB / 0.7956 GB, free: 193 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006082/1.59, allocations: 403.8 kB / 0.796 GB, free: 192.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001454/1.591, allocations: 355.5 kB / 0.7964 GB, free: 192.3 MB / 0.5762 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.008147/1.6, allocations: 4.248 MB / 0.8005 GB, free: 188.7 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001318/1.601, allocations: 0.5129 MB / 0.801 GB, free: 188.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01053/1.611, allocations: 6.486 MB / 0.8073 GB, free: 182.7 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.757e-05/1.611, allocations: 43.8 kB / 0.8074 GB, free: 182.6 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.394e-05/1.611, allocations: 8 kB / 0.8074 GB, free: 182.6 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.385e-05/1.612, allocations: 18.84 kB / 0.8074 GB, free: 182.6 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02978/1.641, allocations: 15.7 MB / 0.8227 GB, free: 169.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.789e-05/1.641, allocations: 8.031 kB / 0.8228 GB, free: 169.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003314/1.645, allocations: 0.7411 MB / 0.8235 GB, free: 168.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002171/1.647, allocations: 0.79 MB / 0.8242 GB, free: 167.8 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006911/1.648, allocations: 85.17 kB / 0.8243 GB, free: 167.7 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008606/1.656, allocations: 9.353 MB / 0.8335 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/1.656, allocations: 7.938 kB / 0.8335 GB, free: 157.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01352/1.67, allocations: 9.499 MB / 0.8427 GB, free: 148.3 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00356/1.673, allocations: 1.057 MB / 0.8438 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001497/1.675, allocations: 68 kB / 0.8438 GB, free: 147.2 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003453/1.678, allocations: 219.8 kB / 0.8441 GB, free: 147 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007754/1.679, allocations: 268 kB / 0.8443 GB, free: 146.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002882/1.679, allocations: 112 kB / 0.8444 GB, free: 146.6 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.005741/1.685, allocations: 3.359 MB / 0.8477 GB, free: 143.2 MB / 0.5762 GB Notification: Performance of sort global known variables: time 5.41e-07/1.685, allocations: 0 / 0.8477 GB, free: 143.2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.009121/1.694, allocations: 1.882 MB / 0.8495 GB, free: 141.4 MB / 0.5762 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.001249/1.696, allocations: 265.4 kB / 0.8498 GB, free: 141.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01183/1.708, allocations: 7.67 MB / 0.8573 GB, free: 133.4 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.636e-06/1.708, allocations: 0 / 0.8573 GB, free: 133.4 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.005951/1.714, allocations: 3.563 MB / 0.8608 GB, free: 129.7 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008598/1.722, allocations: 1.303 MB / 0.862 GB, free: 128.5 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03636/1.759, allocations: 19.43 MB / 0.881 GB, free: 109 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01104/1.77, allocations: 7.121 MB / 0.888 GB, free: 101.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002226/1.772, allocations: 455.3 kB / 0.8884 GB, free: 101.4 MB / 0.5762 GB Notification: Performance of SimCode: time 9.52e-07/1.772, allocations: 0 / 0.8884 GB, free: 101.4 MB / 0.5762 GB Notification: Performance of Templates: time 1.124/2.896, allocations: 463.7 MB / 1.341 GB, free: 56.29 MB / 0.5762 GB make -j1 -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches