Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_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|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.3_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.001488/0.001488, allocations: 108.4 kB / 18.34 MB, free: 4.699 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.001655/0.001655, allocations: 190.9 kB / 19.28 MB, free: 3.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.385/1.385, allocations: 205.1 MB / 225.2 MB, free: 12.26 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 51.92 kB / 282.1 MB, free: 2.422 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07437/0.07554, allocations: 46.63 MB / 328.7 MB, free: 3.719 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03914/0.1147, allocations: 40.02 MB / 368.8 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01996/0.1347, allocations: 10.55 MB / 379.3 MB, free: 0.918 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005665/0.1404, allocations: 263.1 kB / 379.6 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1606/0.3011, allocations: 8.526 MB / 388.1 MB, free: 11.85 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01035/0.3114, allocations: 3.645 MB / 391.7 MB, free: 11.73 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005956/0.3174, allocations: 2.386 MB / 394.1 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01389/0.3313, allocations: 13.41 MB / 407.5 MB, free: 9.324 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03012/0.3615, allocations: 25.36 MB / 432.9 MB, free: 5.215 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01047/0.372, allocations: 7.037 MB / 439.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01214/0.3842, allocations: 8.053 MB / 448 MB, free: 6.516 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004069/0.3883, allocations: 1.992 MB / 450 MB, free: 4.523 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006071/0.3943, allocations: 2.38 MB / 452.4 MB, free: 2.156 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004473/0.3988, allocations: 4.154 MB / 456.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01282/0.4117, allocations: 7.824 MB / 464.3 MB, free: 6.273 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02787/0.4396, allocations: 26.42 MB / 490.8 MB, free: 12.33 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.856e-06/0.4396, allocations: 3.938 kB / 490.8 MB, free: 12.32 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.296e-06/0.4396, allocations: 7.938 kB / 490.8 MB, free: 12.32 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0005716/0.4402, allocations: 0 / 490.8 MB, free: 12.32 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: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.04385/0.4841, allocations: 15.59 MB / 0.4945 GB, free: 12.72 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.4841, allocations: 12.03 kB / 0.4945 GB, free: 12.71 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04917/0.5333, allocations: 9.11 MB / 0.5034 GB, free: 3.676 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01731/0.5507, allocations: 7.503 MB / 0.5107 GB, free: 12.16 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008894/0.5516, allocations: 0.9433 MB / 0.5117 GB, free: 11.23 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004232/0.5558, allocations: 1.247 MB / 0.5129 GB, free: 9.992 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04345/0.5993, allocations: 20.16 MB / 0.5326 GB, free: 5.805 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003082/0.5997, allocations: 23.8 kB / 0.5326 GB, free: 5.781 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001953/0.6016, allocations: 0.5097 MB / 0.5331 GB, free: 5.285 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006954/0.6023, allocations: 0.7372 MB / 0.5338 GB, free: 4.547 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3011/0.9034, allocations: 18.98 MB / 0.5523 GB, free: 136.6 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08279/0.9862, allocations: 62.64 MB / 0.6135 GB, free: 88.66 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02716/1.013, allocations: 56.99 MB / 0.6692 GB, free: 24.83 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005659/1.019, allocations: 4.113 MB / 0.6732 GB, free: 20.71 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01672/1.036, allocations: 11.35 MB / 0.6843 GB, free: 9.348 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.801e-05/1.036, allocations: 73.31 kB / 0.6843 GB, free: 9.266 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 7.084e-06/1.036, allocations: 0 / 0.6843 GB, free: 9.266 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.03396/1.07, allocations: 18.12 MB / 0.702 GB, free: 7.027 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.846e-05/1.07, allocations: 90.47 kB / 0.7021 GB, free: 6.926 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00785/1.078, allocations: 5.462 MB / 0.7074 GB, free: 1.488 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005403/1.078, allocations: 97.7 kB / 0.7075 GB, free: 1.387 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.165/1.243, allocations: 5.881 MB / 0.7133 GB, free: 145.7 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001693/1.245, allocations: 1.373 MB / 0.7146 GB, free: 144.9 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004003/1.249, allocations: 1.506 MB / 0.7161 GB, free: 144.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.882e-05/1.249, allocations: 304.7 kB / 0.7164 GB, free: 144.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005531/1.255, allocations: 3.082 MB / 0.7194 GB, free: 143.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006916/1.262, allocations: 6.753 MB / 0.726 GB, free: 137.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01114/1.273, allocations: 10.59 MB / 0.7363 GB, free: 129.6 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001837/1.273, allocations: 35.59 kB / 0.7364 GB, free: 129.6 MB / 462.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.0173/1.29, allocations: 10.79 MB / 0.7469 GB, free: 125.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001389/1.291, allocations: 59.12 kB / 0.747 GB, free: 125.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000205/1.291, allocations: 133 kB / 0.7471 GB, free: 125.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002367/1.293, allocations: 0.9717 MB / 0.748 GB, free: 125 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005932/1.299, allocations: 1.822 MB / 0.7498 GB, free: 124.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009769/1.309, allocations: 10.23 MB / 0.7598 GB, free: 117.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005626/1.315, allocations: 438.6 kB / 0.7602 GB, free: 117.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00107/1.316, allocations: 421.4 kB / 0.7606 GB, free: 117.6 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006866/1.323, allocations: 4.462 MB / 0.765 GB, free: 115.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001172/1.324, allocations: 0.5466 MB / 0.7655 GB, free: 115.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009432/1.333, allocations: 6.508 MB / 0.7719 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.155e-05/1.333, allocations: 40 kB / 0.7719 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-05/1.333, allocations: 8 kB / 0.7719 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.274e-05/1.333, allocations: 22.8 kB / 0.772 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02212/1.355, allocations: 15.95 MB / 0.7875 GB, free: 95.77 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.417e-05/1.356, allocations: 4 kB / 0.7875 GB, free: 95.77 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003007/1.359, allocations: 0.7571 MB / 0.7883 GB, free: 95.01 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001972/1.361, allocations: 0.7872 MB / 0.789 GB, free: 94.21 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003817/1.361, allocations: 83.97 kB / 0.7891 GB, free: 94.12 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008028/1.369, allocations: 9.345 MB / 0.7982 GB, free: 84.38 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/1.369, allocations: 3.938 kB / 0.7982 GB, free: 84.38 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01168/1.381, allocations: 9.536 MB / 0.8076 GB, free: 74.73 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002454/1.383, allocations: 1.072 MB / 0.8086 GB, free: 73.63 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006965/1.384, allocations: 75.94 kB / 0.8087 GB, free: 73.56 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002219/1.386, allocations: 219.8 kB / 0.8089 GB, free: 73.34 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005/1.387, allocations: 265.6 kB / 0.8091 GB, free: 73.09 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002409/1.387, allocations: 116 kB / 0.8093 GB, free: 72.97 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00433/1.391, allocations: 3.599 MB / 0.8128 GB, free: 69.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.51e-07/1.391, allocations: 0 / 0.8128 GB, free: 69.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006165/1.397, allocations: 1.983 MB / 0.8147 GB, free: 67.42 MB / 462.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%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005568/1.398, allocations: 258.8 kB / 0.8149 GB, free: 67.17 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01025/1.408, allocations: 8.077 MB / 0.8228 GB, free: 59.02 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.62e-06/1.408, allocations: 0 / 0.8228 GB, free: 59.02 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004394/1.413, allocations: 3.539 MB / 0.8263 GB, free: 55.41 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005118/1.418, allocations: 1.316 MB / 0.8276 GB, free: 54.12 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02815/1.446, allocations: 20.73 MB / 0.8478 GB, free: 33.38 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006909/1.453, allocations: 7.594 MB / 0.8552 GB, free: 25.73 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005359/1.458, allocations: 2.363 MB / 0.8575 GB, free: 23.36 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001168/1.459, allocations: 431.3 kB / 0.858 GB, free: 22.94 MB / 462.1 MB Notification: Performance of SimCode: time 8.01e-07/1.459, allocations: 0 / 0.858 GB, free: 22.94 MB / 462.1 MB Notification: Performance of Templates: time 0.2648/1.724, allocations: 70.96 MB / 0.9272 GB, free: 107.6 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & ./Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches