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.0007779/0.000778, allocations: 92.47 kB / 17.31 MB, free: 5.59 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.0008309/0.0008309, allocations: 184.7 kB / 18.21 MB, free: 5.191 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.112/1.112, allocations: 223.3 MB / 242.3 MB, free: 188 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002052/0.0002052, allocations: 7.984 kB / 302.1 MB, free: 6.102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06852/0.06874, allocations: 50.41 MB / 352.5 MB, free: 3.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1493/0.2181, allocations: 37.19 MB / 389.7 MB, free: 7.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01497/0.2331, allocations: 10.21 MB / 399.9 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003738/0.2368, allocations: 282.6 kB / 400.2 MB, free: 0.918 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00367/0.2405, allocations: 2.114 MB / 402.3 MB, free: 15.94 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006908/0.2474, allocations: 3.077 MB / 405.4 MB, free: 13.59 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003654/0.2511, allocations: 1.957 MB / 407.3 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01078/0.2619, allocations: 12.92 MB / 420.3 MB, free: 2.414 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02926/0.2912, allocations: 24.09 MB / 444.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005461/0.2966, allocations: 4.744 MB / 449.1 MB, free: 5.418 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005751/0.3024, allocations: 5.908 MB / 455 MB, free: 15.48 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009849/0.3034, allocations: 0.7578 MB / 455.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002193/0.3056, allocations: 1.148 MB / 456.9 MB, free: 13.58 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001745/0.3074, allocations: 2.502 MB / 459.4 MB, free: 11.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004775/0.3121, allocations: 5.964 MB / 465.4 MB, free: 5.066 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01523/0.3274, allocations: 21.7 MB / 487.1 MB, free: 15.3 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.3274, allocations: 0 / 487.1 MB, free: 15.3 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.3274, allocations: 0 / 487.1 MB, free: 15.3 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003007/0.3277, allocations: 4 kB / 487.1 MB, free: 15.3 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.02521/0.3529, allocations: 12.41 MB / 499.5 MB, free: 2.773 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.353, allocations: 8.031 kB / 499.5 MB, free: 2.766 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02825/0.3812, allocations: 6.151 MB / 0.4938 GB, free: 12.59 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01057/0.3918, allocations: 7.808 MB / 0.5014 GB, free: 4.703 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005536/0.3924, allocations: 0.911 MB / 0.5023 GB, free: 3.789 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001717/0.3941, allocations: 1.199 MB / 0.5035 GB, free: 2.59 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2643/0.6584, allocations: 18.66 MB / 0.5217 GB, free: 116 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004914/0.6589, allocations: 15.62 kB / 0.5217 GB, free: 116 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002767/0.6617, allocations: 0.491 MB / 0.5222 GB, free: 116 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007407/0.6624, allocations: 0.6385 MB / 0.5228 GB, free: 115.9 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02699/0.6894, allocations: 16.77 MB / 0.5392 GB, free: 110.6 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05512/0.7446, allocations: 59.07 MB / 0.5969 GB, free: 59.85 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01539/0.76, allocations: 32.86 MB / 0.629 GB, free: 23.1 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003899/0.7639, allocations: 3.742 MB / 0.6326 GB, free: 19.34 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009792/0.7737, allocations: 8.676 MB / 0.6411 GB, free: 10.67 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.645e-05/0.7738, allocations: 72.45 kB / 0.6412 GB, free: 10.59 MB / 430.1 MB Notification: Performance of pre-optimization done (n=349): time 5.972e-06/0.7738, allocations: 3.984 kB / 0.6412 GB, free: 10.59 MB / 430.1 MB Notification: Performance of matching and sorting (n=389): time 0.02646/0.8003, allocations: 17.59 MB / 0.6584 GB, free: 8.844 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.98e-05/0.8003, allocations: 98.41 kB / 0.6584 GB, free: 8.734 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005817/0.8062, allocations: 5.012 MB / 0.6633 GB, free: 3.727 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002111/0.8064, allocations: 93.7 kB / 0.6634 GB, free: 3.629 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00284/0.8092, allocations: 5.443 MB / 0.6687 GB, free: 14.15 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008828/0.8101, allocations: 1.35 MB / 0.6701 GB, free: 12.81 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000611/0.8107, allocations: 0.5203 MB / 0.6706 GB, free: 12.29 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.152e-05/0.8108, allocations: 305.1 kB / 0.6709 GB, free: 11.98 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003679/0.8145, allocations: 2.914 MB / 0.6737 GB, free: 9.066 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005237/0.8197, allocations: 5.867 MB / 0.6794 GB, free: 1.797 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009473/0.8292, allocations: 9.448 MB / 0.6887 GB, free: 6.906 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.684e-05/0.8293, allocations: 32 kB / 0.6887 GB, free: 6.875 MB / 478.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.1602/0.9895, allocations: 9.844 MB / 0.6983 GB, free: 143.2 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.397e-05/0.9896, allocations: 52.48 kB / 0.6984 GB, free: 143.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001421/0.9898, allocations: 102.4 kB / 0.6985 GB, free: 143.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002278/0.9921, allocations: 0.9416 MB / 0.6994 GB, free: 143.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005056/0.9971, allocations: 1.577 MB / 0.7009 GB, free: 143.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008991/1.006, allocations: 9.502 MB / 0.7102 GB, free: 137.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004262/1.01, allocations: 400.7 kB / 0.7106 GB, free: 137.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007239/1.011, allocations: 354.2 kB / 0.7109 GB, free: 137.5 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.005883/1.017, allocations: 4.248 MB / 0.7151 GB, free: 135.6 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008816/1.018, allocations: 0.5084 MB / 0.7156 GB, free: 135.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008622/1.027, allocations: 6.496 MB / 0.7219 GB, free: 133 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.862e-05/1.027, allocations: 47.34 kB / 0.722 GB, free: 133 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.096e-05/1.027, allocations: 7.906 kB / 0.722 GB, free: 133 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.743e-05/1.027, allocations: 18.84 kB / 0.722 GB, free: 133 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01735/1.044, allocations: 15.71 MB / 0.7373 GB, free: 126.7 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.147e-06/1.044, allocations: 3.875 kB / 0.7373 GB, free: 126.7 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002622/1.047, allocations: 0.7507 MB / 0.7381 GB, free: 126.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001688/1.048, allocations: 0.788 MB / 0.7388 GB, free: 126.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001854/1.049, allocations: 87.78 kB / 0.7389 GB, free: 126.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007114/1.056, allocations: 8.675 MB / 0.7474 GB, free: 120.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/1.056, allocations: 7.375 kB / 0.7474 GB, free: 120.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009924/1.066, allocations: 9.498 MB / 0.7567 GB, free: 114.5 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001407/1.067, allocations: 1.062 MB / 0.7577 GB, free: 113.8 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004822/1.068, allocations: 79.14 kB / 0.7578 GB, free: 113.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001942/1.069, allocations: 225.6 kB / 0.758 GB, free: 113.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003809/1.07, allocations: 263 kB / 0.7582 GB, free: 113.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000194/1.07, allocations: 116.1 kB / 0.7584 GB, free: 113.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003393/1.073, allocations: 3.35 MB / 0.7616 GB, free: 110.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.073, allocations: 0 / 0.7616 GB, free: 110.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004238/1.078, allocations: 1.881 MB / 0.7635 GB, free: 108.4 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.0004034/1.078, allocations: 258.5 kB / 0.7637 GB, free: 108.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.007838/1.086, allocations: 7.663 MB / 0.7712 GB, free: 100.4 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/1.086, allocations: 0 / 0.7712 GB, free: 100.4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003572/1.09, allocations: 3.559 MB / 0.7747 GB, free: 96.77 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005926/1.095, allocations: 1.217 MB / 0.7759 GB, free: 95.58 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02416/1.12, allocations: 24.76 MB / 0.8 GB, free: 70.76 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004818/1.124, allocations: 7.101 MB / 0.807 GB, free: 63.62 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001367/1.126, allocations: 459.3 kB / 0.8074 GB, free: 63.18 MB / 478.1 MB Notification: Performance of SimCode: time 4.51e-07/1.126, allocations: 0 / 0.8074 GB, free: 63.18 MB / 478.1 MB Notification: Performance of Templates: time 0.7353/1.861, allocations: 459 MB / 1.256 GB, free: 157.2 MB / 0.4982 GB 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/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_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