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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",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=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|dqToThreePhase.y.1.|dqToThreePhase.y.2.|dqToThreePhase.y.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009165/0.0009166, allocations: 89.09 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009827/0.0009827, allocations: 173.9 kB / 17.56 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.299/1.299, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002421/0.0002421, allocations: 15.92 kB / 301.4 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08071/0.08097, allocations: 50.41 MB / 351.9 MB, free: 3.449 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1807/0.2617, allocations: 37.18 MB / 389 MB, free: 7.18 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01872/0.2805, allocations: 10.21 MB / 399.3 MB, free: 460 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006614/0.2871, allocations: 282.9 kB / 399.5 MB, free: 396 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005998/0.2932, allocations: 2.122 MB / 401.7 MB, free: 15.4 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01099/0.3042, allocations: 3.062 MB / 404.7 MB, free: 13.11 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006246/0.3104, allocations: 1.965 MB / 406.7 MB, free: 11.56 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01595/0.3264, allocations: 12.92 MB / 419.6 MB, free: 2.16 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04264/0.3691, allocations: 24.09 MB / 443.7 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008234/0.3774, allocations: 4.755 MB / 448.4 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009468/0.3869, allocations: 5.897 MB / 454.3 MB, free: 15.24 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002694/0.3896, allocations: 0.7578 MB / 455.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004794/0.3944, allocations: 1.156 MB / 456.3 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003623/0.398, allocations: 2.502 MB / 458.8 MB, free: 10.81 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009423/0.4075, allocations: 5.96 MB / 464.7 MB, free: 4.816 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02678/0.4343, allocations: 24.25 MB / 489 MB, free: 12.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.4343, allocations: 0 / 489 MB, free: 12.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.4343, allocations: 0 / 489 MB, free: 12.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0006128/0.4349, allocations: 4 kB / 489 MB, free: 12.48 MB / 398.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.03374/0.4687, allocations: 12.41 MB / 0.4896 GB, free: 15.95 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.4688, allocations: 8.031 kB / 0.4896 GB, free: 15.95 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0342/0.503, allocations: 6.159 MB / 0.4957 GB, free: 9.77 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01582/0.5188, allocations: 7.808 MB / 0.5033 GB, free: 1.879 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001094/0.52, allocations: 0.911 MB / 0.5042 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003972/0.5239, allocations: 1.195 MB / 0.5053 GB, free: 15.77 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3516/0.8755, allocations: 18.66 MB / 0.5236 GB, free: 110.2 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00044/0.876, allocations: 19.16 kB / 0.5236 GB, free: 110.2 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002742/0.8788, allocations: 0.494 MB / 0.5241 GB, free: 110.2 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007645/0.8795, allocations: 0.637 MB / 0.5247 GB, free: 110.1 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03473/0.9143, allocations: 16.77 MB / 0.5411 GB, free: 103.9 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08216/0.9965, allocations: 59.06 MB / 0.5987 GB, free: 56.61 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01903/1.016, allocations: 32.87 MB / 0.6308 GB, free: 19.85 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005169/1.021, allocations: 3.742 MB / 0.6345 GB, free: 16.1 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01327/1.034, allocations: 8.68 MB / 0.643 GB, free: 7.418 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.811e-05/1.034, allocations: 73.31 kB / 0.643 GB, free: 7.336 MB / 430.1 MB Notification: Performance of pre-optimization done (n=349): time 5.24e-06/1.034, allocations: 0 / 0.643 GB, free: 7.336 MB / 430.1 MB Notification: Performance of matching and sorting (n=389): time 0.03451/1.069, allocations: 17.58 MB / 0.6602 GB, free: 5.598 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.408e-05/1.069, allocations: 94.41 kB / 0.6603 GB, free: 5.492 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008818/1.078, allocations: 5.013 MB / 0.6652 GB, free: 496 kB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006468/1.078, allocations: 93.7 kB / 0.6653 GB, free: 396 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003575/1.082, allocations: 5.444 MB / 0.6706 GB, free: 10.91 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0015/1.083, allocations: 1.354 MB / 0.6719 GB, free: 9.566 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001093/1.084, allocations: 0.5203 MB / 0.6724 GB, free: 9.039 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.446e-05/1.085, allocations: 305.1 kB / 0.6727 GB, free: 8.738 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004871/1.089, allocations: 2.906 MB / 0.6756 GB, free: 5.828 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006728/1.096, allocations: 5.875 MB / 0.6813 GB, free: 14.55 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01209/1.108, allocations: 9.448 MB / 0.6905 GB, free: 3.66 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.208e-05/1.108, allocations: 31.94 kB / 0.6905 GB, free: 3.629 MB / 478.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.2065/1.315, allocations: 9.843 MB / 0.7002 GB, free: 144.2 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001071/1.315, allocations: 55.36 kB / 0.7002 GB, free: 144.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002525/1.315, allocations: 100.8 kB / 0.7003 GB, free: 144.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002593/1.318, allocations: 0.9361 MB / 0.7012 GB, free: 144.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006401/1.324, allocations: 1.577 MB / 0.7028 GB, free: 144.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01113/1.335, allocations: 9.5 MB / 0.712 GB, free: 137.9 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005184/1.341, allocations: 405.3 kB / 0.7124 GB, free: 137.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001008/1.342, allocations: 352.3 kB / 0.7128 GB, free: 137.8 MB / 478.1 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.006977/1.349, allocations: 4.243 MB / 0.7169 GB, free: 135.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001066/1.35, allocations: 0.5123 MB / 0.7174 GB, free: 135.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009962/1.36, allocations: 6.496 MB / 0.7238 GB, free: 133.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.481e-05/1.36, allocations: 46.3 kB / 0.7238 GB, free: 133.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.548e-05/1.36, allocations: 7.938 kB / 0.7238 GB, free: 133.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-05/1.36, allocations: 19.08 kB / 0.7238 GB, free: 133.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02285/1.383, allocations: 15.72 MB / 0.7392 GB, free: 126.8 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.385e-05/1.383, allocations: 3.875 kB / 0.7392 GB, free: 126.8 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003113/1.386, allocations: 0.7428 MB / 0.7399 GB, free: 126.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002174/1.388, allocations: 0.7934 MB / 0.7407 GB, free: 126.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00029/1.388, allocations: 80.23 kB / 0.7408 GB, free: 126.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008564/1.397, allocations: 8.688 MB / 0.7492 GB, free: 120.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/1.397, allocations: 3.25 kB / 0.7492 GB, free: 120.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01289/1.41, allocations: 9.498 MB / 0.7585 GB, free: 112.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0024/1.412, allocations: 1.069 MB / 0.7596 GB, free: 111.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001054/1.413, allocations: 72 kB / 0.7596 GB, free: 111.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002878/1.416, allocations: 225.4 kB / 0.7598 GB, free: 111 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005521/1.417, allocations: 266.7 kB / 0.7601 GB, free: 110.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002385/1.417, allocations: 112 kB / 0.7602 GB, free: 110.7 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004846/1.422, allocations: 3.35 MB / 0.7635 GB, free: 107.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.01e-07/1.422, allocations: 0 / 0.7635 GB, free: 107.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006375/1.428, allocations: 1.879 MB / 0.7653 GB, free: 105.5 MB / 478.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 (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.0006792/1.429, allocations: 259 kB / 0.7656 GB, free: 105.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009927/1.439, allocations: 7.664 MB / 0.773 GB, free: 97.46 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.402e-06/1.439, allocations: 0 / 0.773 GB, free: 97.46 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004762/1.444, allocations: 3.558 MB / 0.7765 GB, free: 93.83 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009645/1.453, allocations: 1.214 MB / 0.7777 GB, free: 92.64 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03349/1.487, allocations: 25.04 MB / 0.8021 GB, free: 67.54 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006929/1.494, allocations: 7.328 MB / 0.8093 GB, free: 60.17 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005915/1.5, allocations: 2.148 MB / 0.8114 GB, free: 58.02 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001104/1.501, allocations: 407.3 kB / 0.8118 GB, free: 57.62 MB / 478.1 MB Notification: Performance of SimCode: time 6.62e-07/1.501, allocations: 0 / 0.8118 GB, free: 57.62 MB / 478.1 MB Notification: Performance of Templates: time 0.2978/1.799, allocations: 72.45 MB / 0.8825 GB, free: 130.6 MB / 478.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches