Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001055/0.001055, allocations: 201.6 kB / 17.43 MB, free: 4.375 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 229.5 MB / 247.7 MB, free: 6.348 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007614/0.0007614, allocations: 94.48 kB / 299.8 MB, free: 5.355 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002372/0.000237, allocations: 8 kB / 360.7 MB, free: 8.453 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1959/0.1961, allocations: 51.41 MB / 412.1 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.02739/0.2236, allocations: 35.25 MB / 447.3 MB, free: 6.543 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02042/0.2441, allocations: 12.95 MB / 460.3 MB, free: 8.926 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006233/0.2503, allocations: 287 kB / 460.5 MB, free: 8.645 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006032/0.2564, allocations: 2.119 MB / 462.7 MB, free: 6.516 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009836/0.2662, allocations: 3.983 MB / 466.6 MB, free: 2.297 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005714/0.272, allocations: 2.743 MB / 469.4 MB, free: 15.37 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01469/0.2867, allocations: 13.04 MB / 482.4 MB, free: 2.27 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04075/0.3275, allocations: 29.95 MB / 0.5004 GB, free: 2.699 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1905/0.5179, allocations: 4.864 MB / 0.5051 GB, free: 32.2 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008608/0.5266, allocations: 5.939 MB / 0.5109 GB, free: 31.9 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003341/0.53, allocations: 0.758 MB / 0.5117 GB, free: 31.9 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004846/0.5348, allocations: 1.158 MB / 0.5128 GB, free: 31.9 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00321/0.5381, allocations: 2.497 MB / 0.5152 GB, free: 31.46 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01066/0.5487, allocations: 5.971 MB / 0.5211 GB, free: 29.65 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02017/0.5689, allocations: 24.28 MB / 0.5448 GB, free: 17.65 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.569, allocations: 0 / 0.5448 GB, free: 17.65 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.569, allocations: 0 / 0.5448 GB, free: 17.65 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0007234/0.5697, allocations: 2.344 kB / 0.5448 GB, free: 17.65 MB / 378.7 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.03238/0.6021, allocations: 12.45 MB / 0.5569 GB, free: 11.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.091e-05/0.6022, allocations: 8.656 kB / 0.5569 GB, free: 11.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03084/0.633, allocations: 6.141 MB / 0.5629 GB, free: 5.531 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01735/0.6504, allocations: 7.823 MB / 0.5706 GB, free: 0.7969 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001036/0.6515, allocations: 0.9141 MB / 0.5715 GB, free: 280 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004892/0.6564, allocations: 1.197 MB / 0.5726 GB, free: 15.47 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04768/0.7041, allocations: 18.57 MB / 0.5908 GB, free: 2.598 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006616/0.7048, allocations: 27.36 kB / 0.5908 GB, free: 2.574 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004439/0.7093, allocations: 0.4945 MB / 0.5913 GB, free: 2.09 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000775/0.7101, allocations: 0.6359 MB / 0.5919 GB, free: 1.453 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03696/0.7471, allocations: 16.67 MB / 0.6082 GB, free: 0.7773 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1033/0.8503, allocations: 59.75 MB / 0.6665 GB, free: 4.48 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1864/1.037, allocations: 33.18 MB / 0.6989 GB, free: 145.2 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006151/1.043, allocations: 3.761 MB / 0.7026 GB, free: 145.2 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01686/1.06, allocations: 8.892 MB / 0.7113 GB, free: 142 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.175e-05/1.06, allocations: 66.38 kB / 0.7113 GB, free: 142 MB / 490.7 MB Notification: Performance of pre-optimization done (n=349): time 1.01e-05/1.06, allocations: 0 / 0.7113 GB, free: 142 MB / 490.7 MB Notification: Performance of matching and sorting (n=389): time 0.03858/1.099, allocations: 17.55 MB / 0.7285 GB, free: 134.5 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.439e-05/1.099, allocations: 97.81 kB / 0.7286 GB, free: 134.4 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007578/1.106, allocations: 4.986 MB / 0.7334 GB, free: 132.6 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004073/1.107, allocations: 89.42 kB / 0.7335 GB, free: 132.5 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002384/1.109, allocations: 5.45 MB / 0.7389 GB, free: 128.4 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001038/1.11, allocations: 1.357 MB / 0.7402 GB, free: 127.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004556/1.111, allocations: 135.2 kB / 0.7403 GB, free: 127.2 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0003204/1.111, allocations: 0.5729 MB / 0.7409 GB, free: 126.8 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003808/1.115, allocations: 2.887 MB / 0.7437 GB, free: 125.7 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004772/1.119, allocations: 5.847 MB / 0.7494 GB, free: 120.7 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01066/1.13, allocations: 9.409 MB / 0.7586 GB, free: 112.7 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001094/1.13, allocations: 28 kB / 0.7586 GB, free: 112.7 MB / 490.7 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01848/1.149, allocations: 9.795 MB / 0.7682 GB, free: 104 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001369/1.149, allocations: 48 kB / 0.7682 GB, free: 103.9 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001978/1.149, allocations: 100 kB / 0.7683 GB, free: 103.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002625/1.152, allocations: 0.9383 MB / 0.7692 GB, free: 102.9 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005858/1.158, allocations: 1.583 MB / 0.7708 GB, free: 101.3 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01021/1.168, allocations: 9.489 MB / 0.78 GB, free: 91.39 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005917/1.174, allocations: 407.2 kB / 0.7804 GB, free: 90.99 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001419/1.175, allocations: 348 kB / 0.7808 GB, free: 90.65 MB / 490.7 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,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008959/1.184, allocations: 4.25 MB / 0.7849 GB, free: 86.39 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001606/1.186, allocations: 0.5132 MB / 0.7854 GB, free: 85.87 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01178/1.198, allocations: 6.473 MB / 0.7917 GB, free: 79.35 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.476e-05/1.198, allocations: 40 kB / 0.7918 GB, free: 79.31 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.507e-05/1.198, allocations: 12 kB / 0.7918 GB, free: 79.3 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.136e-05/1.198, allocations: 19.92 kB / 0.7918 GB, free: 79.28 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02749/1.225, allocations: 15.7 MB / 0.8071 GB, free: 63.54 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.387e-05/1.225, allocations: 4 kB / 0.8071 GB, free: 63.53 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003174/1.229, allocations: 0.745 MB / 0.8079 GB, free: 62.79 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002008/1.231, allocations: 0.7888 MB / 0.8086 GB, free: 61.98 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003899/1.231, allocations: 79.98 kB / 0.8087 GB, free: 61.9 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008104/1.239, allocations: 8.661 MB / 0.8172 GB, free: 52.84 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/1.239, allocations: 4 kB / 0.8172 GB, free: 52.84 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0136/1.253, allocations: 9.464 MB / 0.8264 GB, free: 43.26 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002526/1.255, allocations: 1.065 MB / 0.8275 GB, free: 42.17 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001282/1.257, allocations: 71.94 kB / 0.8275 GB, free: 42.1 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002873/1.26, allocations: 235.7 kB / 0.8278 GB, free: 41.87 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006283/1.26, allocations: 254.8 kB / 0.828 GB, free: 41.62 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003076/1.261, allocations: 116 kB / 0.8281 GB, free: 41.51 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.006016/1.267, allocations: 3.323 MB / 0.8314 GB, free: 38.2 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.71e-07/1.267, allocations: 0 / 0.8314 GB, free: 38.2 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007957/1.275, allocations: 1.889 MB / 0.8332 GB, free: 36.32 MB / 490.7 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.0008591/1.275, allocations: 282.2 kB / 0.8335 GB, free: 36.04 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.011/1.286, allocations: 7.591 MB / 0.8409 GB, free: 28.38 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/1.287, allocations: 5.938 kB / 0.8409 GB, free: 28.37 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00485/1.291, allocations: 3.548 MB / 0.8443 GB, free: 24.75 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009001/1.3, allocations: 1.223 MB / 0.8455 GB, free: 23.53 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2334/1.534, allocations: 25.06 MB / 0.87 GB, free: 148.4 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01096/1.545, allocations: 7.325 MB / 0.8772 GB, free: 147.5 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.006255/1.551, allocations: 2.149 MB / 0.8793 GB, free: 147.4 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001637/1.553, allocations: 402.2 kB / 0.8797 GB, free: 147.4 MB / 490.7 MB Notification: Performance of SimCode: time 1.964e-06/1.553, allocations: 0 / 0.8797 GB, free: 147.4 MB / 490.7 MB Notification: Performance of Templates: time 0.1147/1.667, allocations: 72.87 MB / 0.9508 GB, free: 96.86 MB / 490.7 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