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.0009211/0.000921, allocations: 100.3 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009678/0.0009678, allocations: 202.8 kB / 17.9 MB, free: 5.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.277/1.277, allocations: 227.2 MB / 245.9 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002185/0.0002186, allocations: 4 kB / 306.6 MB, free: 1.371 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0916/0.09183, allocations: 51.49 MB / 358.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1951/0.287, allocations: 32.14 MB / 390.2 MB, free: 3.828 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02788/0.3149, allocations: 10.24 MB / 400.5 MB, free: 12.31 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009679/0.3246, allocations: 264.6 kB / 400.7 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008409/0.3331, allocations: 2.098 MB / 402.8 MB, free: 11.13 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01504/0.3481, allocations: 3.585 MB / 406.4 MB, free: 8.477 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008225/0.3564, allocations: 1.82 MB / 408.2 MB, free: 7.098 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01953/0.3759, allocations: 10.09 MB / 418.3 MB, free: 360 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04476/0.4207, allocations: 19.71 MB / 438 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009079/0.4299, allocations: 4.524 MB / 442.6 MB, free: 8.016 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009912/0.4398, allocations: 5.194 MB / 447.8 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003185/0.4431, allocations: 0.7539 MB / 448.5 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00607/0.4491, allocations: 1.089 MB / 449.6 MB, free: 0.957 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00415/0.4533, allocations: 2.387 MB / 452 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00526/0.4586, allocations: 2.515 MB / 454.5 MB, free: 12.04 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02542/0.484, allocations: 21.66 MB / 476.2 MB, free: 6.32 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.4841, allocations: 0 / 476.2 MB, free: 6.32 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.156e-06/0.4841, allocations: 0 / 476.2 MB, free: 6.32 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0008422/0.4849, allocations: 0 / 476.2 MB, free: 6.32 MB / 382.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.04112/0.5261, allocations: 12.54 MB / 488.7 MB, free: 9.66 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.165e-05/0.5262, allocations: 12.03 kB / 488.7 MB, free: 9.648 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03415/0.5603, allocations: 6.049 MB / 494.8 MB, free: 3.578 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01957/0.5799, allocations: 7.733 MB / 0.4907 GB, free: 11.76 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009538/0.5809, allocations: 0.9109 MB / 0.4916 GB, free: 10.85 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004296/0.5852, allocations: 1.191 MB / 0.4928 GB, free: 9.66 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04379/0.629, allocations: 18.47 MB / 0.5108 GB, free: 7.102 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003601/0.6294, allocations: 19.81 kB / 0.5108 GB, free: 7.082 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003041/0.6325, allocations: 496 kB / 0.5113 GB, free: 6.598 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006877/0.6332, allocations: 0.6537 MB / 0.5119 GB, free: 5.941 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03588/0.6691, allocations: 16.68 MB / 0.5282 GB, free: 5.238 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4664/1.135, allocations: 59.66 MB / 0.5865 GB, free: 87.43 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01713/1.153, allocations: 33.15 MB / 0.6189 GB, free: 54.91 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01404/1.167, allocations: 8.953 MB / 0.6276 GB, free: 47.41 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.326e-05/1.167, allocations: 73.39 kB / 0.6277 GB, free: 47.33 MB / 446.1 MB Notification: Performance of pre-optimization done (n=359): time 5.851e-06/1.167, allocations: 3.938 kB / 0.6277 GB, free: 47.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=399): time 0.03077/1.198, allocations: 17.58 MB / 0.6448 GB, free: 29.6 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.717e-05/1.198, allocations: 90.55 kB / 0.6449 GB, free: 29.5 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006248/1.204, allocations: 4.943 MB / 0.6498 GB, free: 24.56 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008346/1.205, allocations: 97.7 kB / 0.6499 GB, free: 24.46 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003064/1.208, allocations: 5.44 MB / 0.6552 GB, free: 18.99 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001785/1.21, allocations: 1.384 MB / 0.6565 GB, free: 17.62 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003724/1.21, allocations: 136 kB / 0.6566 GB, free: 17.48 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0003136/1.21, allocations: 0.5754 MB / 0.6572 GB, free: 16.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004078/1.214, allocations: 2.906 MB / 0.66 GB, free: 13.99 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005123/1.22, allocations: 5.837 MB / 0.6657 GB, free: 6.762 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00516/1.225, allocations: 4.219 MB / 0.6699 GB, free: 2.523 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-05/1.225, allocations: 28 kB / 0.6699 GB, free: 2.496 MB / 446.1 MB Notification: Performance of matching and sorting (n=871) (initialization): time 0.01709/1.242, allocations: 9.836 MB / 0.6795 GB, free: 8.59 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.9e-05/1.242, allocations: 48 kB / 0.6795 GB, free: 8.543 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001636/1.242, allocations: 100.4 kB / 0.6796 GB, free: 8.445 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002409/1.245, allocations: 0.95 MB / 0.6806 GB, free: 7.48 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006009/1.251, allocations: 1.591 MB / 0.6821 GB, free: 5.887 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01173/1.262, allocations: 9.688 MB / 0.6916 GB, free: 11.79 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005524/1.268, allocations: 411.2 kB / 0.692 GB, free: 11.39 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001471/1.27, allocations: 352 kB / 0.6923 GB, free: 11.05 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 451 * 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 (822): * Single equations (assignments): 817 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,59.4%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009259/1.279, allocations: 4.258 MB / 0.6965 GB, free: 6.773 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001435/1.28, allocations: 0.5171 MB / 0.697 GB, free: 6.25 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01164/1.292, allocations: 6.557 MB / 0.7034 GB, free: 15.64 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.298e-05/1.292, allocations: 44 kB / 0.7034 GB, free: 15.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.963e-05/1.292, allocations: 11.95 kB / 0.7034 GB, free: 15.59 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.414e-05/1.292, allocations: 23.86 kB / 0.7035 GB, free: 15.57 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2949/1.587, allocations: 15.86 MB / 0.7189 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.901e-05/1.587, allocations: 2.75 kB / 0.7189 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00446/1.592, allocations: 0.7693 MB / 0.7197 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003019/1.595, allocations: 0.775 MB / 0.7205 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001006/1.596, allocations: 88.52 kB / 0.7205 GB, free: 155.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0125/1.608, allocations: 8.851 MB / 0.7292 GB, free: 151.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/1.608, allocations: 2.312 kB / 0.7292 GB, free: 151.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01948/1.628, allocations: 9.975 MB / 0.7389 GB, free: 147.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003798/1.631, allocations: 1.085 MB / 0.74 GB, free: 147.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001714/1.633, allocations: 69.62 kB / 0.7401 GB, free: 147.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003129/1.636, allocations: 232.9 kB / 0.7403 GB, free: 147 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000608/1.637, allocations: 268.7 kB / 0.7405 GB, free: 147 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002712/1.637, allocations: 116.7 kB / 0.7406 GB, free: 147 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.00618/1.643, allocations: 3.294 MB / 0.7439 GB, free: 145.8 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.21e-07/1.644, allocations: 0 / 0.7439 GB, free: 145.8 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.009387/1.653, allocations: 1.891 MB / 0.7457 GB, free: 145.6 MB / 494.1 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 (378): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(8,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001299/1.654, allocations: 266.7 kB / 0.746 GB, free: 145.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.01327/1.668, allocations: 7.686 MB / 0.7535 GB, free: 142.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.232e-05/1.668, allocations: 0 / 0.7535 GB, free: 142.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005915/1.674, allocations: 3.589 MB / 0.757 GB, free: 140.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006392/1.68, allocations: 1.192 MB / 0.7581 GB, free: 140.1 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03803/1.718, allocations: 23.89 MB / 0.7815 GB, free: 121.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01065/1.729, allocations: 7.519 MB / 0.7888 GB, free: 115.6 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.007876/1.737, allocations: 2.152 MB / 0.7909 GB, free: 114.1 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001909/1.739, allocations: 411.3 kB / 0.7913 GB, free: 113.6 MB / 494.1 MB Notification: Performance of SimCode: time 1.173e-06/1.739, allocations: 0 / 0.7913 GB, free: 113.6 MB / 494.1 MB Notification: Performance of Templates: time 0.1267/1.865, allocations: 71.02 MB / 0.8607 GB, free: 43.14 MB / 494.1 MB 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/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","../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