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.001002/0.001002, allocations: 104.7 kB / 17.15 MB, free: 6.305 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.000987/0.000987, allocations: 198 kB / 18.07 MB, free: 5.41 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.298/1.298, allocations: 205.1 MB / 223.9 MB, free: 12.46 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.001293/0.001293, allocations: 47.92 kB / 280 MB, free: 3.562 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08634/0.08765, allocations: 46.63 MB / 326.6 MB, free: 4.871 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03962/0.1273, allocations: 39.29 MB / 365.9 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02083/0.1482, allocations: 10.44 MB / 376.4 MB, free: 2.938 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008245/0.1565, allocations: 251.1 kB / 376.6 MB, free: 2.691 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1831/0.3397, allocations: 7.994 MB / 384.6 MB, free: 11.15 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01145/0.3511, allocations: 3.314 MB / 387.9 MB, free: 11.03 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006504/0.3577, allocations: 2.222 MB / 390.1 MB, free: 10.95 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01644/0.3741, allocations: 13.65 MB / 403.8 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03082/0.405, allocations: 20.63 MB / 424.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01514/0.4202, allocations: 6.055 MB / 430.5 MB, free: 5.738 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01303/0.4332, allocations: 7.682 MB / 438.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004454/0.4377, allocations: 1.312 MB / 439.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006913/0.4447, allocations: 1.699 MB / 441.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005611/0.4503, allocations: 3.45 MB / 444.6 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01425/0.4646, allocations: 7.107 MB / 451.7 MB, free: 0.832 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03308/0.4977, allocations: 25.77 MB / 477.5 MB, free: 7.535 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.305e-06/0.4978, allocations: 0 / 477.5 MB, free: 7.535 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4978, allocations: 4 kB / 477.5 MB, free: 7.531 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0007782/0.4986, allocations: 0 / 477.5 MB, free: 7.531 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: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.0474/0.546, allocations: 15.63 MB / 493.1 MB, free: 7.898 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.456e-05/0.546, allocations: 8.031 kB / 493.1 MB, free: 7.891 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04969/0.5957, allocations: 9.098 MB / 0.4904 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01506/0.6108, allocations: 7.45 MB / 0.4977 GB, free: 7.402 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008441/0.6117, allocations: 0.95 MB / 0.4987 GB, free: 6.465 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004435/0.6162, allocations: 1.25 MB / 0.4999 GB, free: 5.23 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05076/0.6669, allocations: 20.15 MB / 0.5195 GB, free: 1.047 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005768/0.6675, allocations: 27.73 kB / 0.5196 GB, free: 1.02 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003735/0.6713, allocations: 0.5099 MB / 0.5201 GB, free: 0.5234 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008085/0.6721, allocations: 0.7333 MB / 0.5208 GB, free: 15.79 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3507/1.023, allocations: 18.97 MB / 0.5393 GB, free: 136.1 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0943/1.117, allocations: 63.41 MB / 0.6012 GB, free: 94.37 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02856/1.146, allocations: 56.99 MB / 0.6569 GB, free: 35 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005944/1.152, allocations: 4.114 MB / 0.6609 GB, free: 30.86 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01738/1.169, allocations: 11.39 MB / 0.672 GB, free: 19.46 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.372e-05/1.169, allocations: 77.25 kB / 0.6721 GB, free: 19.37 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 5.15e-06/1.169, allocations: 3.984 kB / 0.6721 GB, free: 19.37 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.03392/1.203, allocations: 18.13 MB / 0.6898 GB, free: 1.117 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.003e-05/1.203, allocations: 94.47 kB / 0.6899 GB, free: 1.012 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009199/1.212, allocations: 5.458 MB / 0.6952 GB, free: 11.58 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001017/1.214, allocations: 89.7 kB / 0.6953 GB, free: 11.48 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003941/1.217, allocations: 5.883 MB / 0.7011 GB, free: 5.57 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001506/1.219, allocations: 1.374 MB / 0.7024 GB, free: 4.207 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002277/1.221, allocations: 1.504 MB / 0.7039 GB, free: 2.695 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.709e-05/1.221, allocations: 305.1 kB / 0.7042 GB, free: 2.395 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1878/1.409, allocations: 3.081 MB / 0.7072 GB, free: 146.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008892/1.418, allocations: 6.754 MB / 0.7138 GB, free: 142.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01146/1.43, allocations: 10.59 MB / 0.7241 GB, free: 134.3 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000202/1.43, allocations: 33.12 kB / 0.7241 GB, free: 134.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01582/1.446, allocations: 10.8 MB / 0.7347 GB, free: 130.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.41e-05/1.446, allocations: 55.97 kB / 0.7347 GB, free: 130.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001411/1.446, allocations: 126.2 kB / 0.7349 GB, free: 130.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002227/1.448, allocations: 0.9789 MB / 0.7358 GB, free: 129.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005243/1.453, allocations: 1.815 MB / 0.7376 GB, free: 129.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009287/1.463, allocations: 9.531 MB / 0.7469 GB, free: 123.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005006/1.468, allocations: 449.5 kB / 0.7473 GB, free: 123.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006323/1.468, allocations: 419.9 kB / 0.7477 GB, free: 123.2 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.006043/1.474, allocations: 4.451 MB / 0.7521 GB, free: 121 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009117/1.475, allocations: 0.5433 MB / 0.7526 GB, free: 121 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0092/1.485, allocations: 6.521 MB / 0.759 GB, free: 117.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.152e-05/1.485, allocations: 40 kB / 0.759 GB, free: 117.9 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.375e-05/1.485, allocations: 8 kB / 0.759 GB, free: 117.9 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.093e-05/1.485, allocations: 23.02 kB / 0.759 GB, free: 117.9 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02108/1.506, allocations: 15.97 MB / 0.7746 GB, free: 104.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-05/1.506, allocations: 0.625 kB / 0.7746 GB, free: 104.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002922/1.509, allocations: 0.7652 MB / 0.7754 GB, free: 104.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001929/1.511, allocations: 0.7858 MB / 0.7761 GB, free: 103.6 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002325/1.511, allocations: 85.8 kB / 0.7762 GB, free: 103.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007658/1.519, allocations: 8.661 MB / 0.7847 GB, free: 94.99 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/1.519, allocations: 11.88 kB / 0.7847 GB, free: 94.98 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01143/1.53, allocations: 9.516 MB / 0.794 GB, free: 85.65 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002019/1.532, allocations: 1.08 MB / 0.795 GB, free: 84.57 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006822/1.533, allocations: 71.98 kB / 0.7951 GB, free: 84.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002216/1.535, allocations: 223.8 kB / 0.7953 GB, free: 84.28 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004991/1.535, allocations: 266.7 kB / 0.7956 GB, free: 84.02 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002291/1.536, allocations: 112 kB / 0.7957 GB, free: 83.91 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004314/1.54, allocations: 3.603 MB / 0.7992 GB, free: 80.33 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.54, allocations: 0 / 0.7992 GB, free: 80.33 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006131/1.546, allocations: 1.989 MB / 0.8012 GB, free: 78.35 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.0004951/1.547, allocations: 252.8 kB / 0.8014 GB, free: 78.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01084/1.558, allocations: 8.04 MB / 0.8092 GB, free: 69.99 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/1.558, allocations: 8.188 kB / 0.8093 GB, free: 69.98 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004756/1.562, allocations: 3.534 MB / 0.8127 GB, free: 66.38 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005557/1.568, allocations: 1.231 MB / 0.8139 GB, free: 65.16 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03028/1.598, allocations: 26.23 MB / 0.8395 GB, free: 38.91 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005675/1.604, allocations: 7.602 MB / 0.8469 GB, free: 31.26 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00605/1.61, allocations: 2.351 MB / 0.8492 GB, free: 28.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0011/1.611, allocations: 431.3 kB / 0.8497 GB, free: 28.48 MB / 462.1 MB Notification: Performance of SimCode: time 9.81e-07/1.611, allocations: 0 / 0.8497 GB, free: 28.48 MB / 462.1 MB Notification: Performance of Templates: time 0.2873/1.898, allocations: 75.71 MB / 0.9236 GB, free: 108.1 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 -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/jenkins/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","../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