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.001035/0.001035, allocations: 97.95 kB / 16.93 MB, free: 5.984 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.0009765/0.0009763, allocations: 180.4 kB / 17.82 MB, free: 5.652 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.258/1.258, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004316/0.0004317, allocations: 12 kB / 280.8 MB, free: 3.727 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07988/0.08032, allocations: 47.58 MB / 328.4 MB, free: 4.078 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03048/0.1108, allocations: 32.07 MB / 360.4 MB, free: 3.902 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02011/0.131, allocations: 10.18 MB / 370.6 MB, free: 9.699 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006067/0.1371, allocations: 247.1 kB / 370.8 MB, free: 9.457 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006711/0.1438, allocations: 2.102 MB / 372.9 MB, free: 7.344 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01156/0.1554, allocations: 3.669 MB / 376.6 MB, free: 3.664 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00614/0.1616, allocations: 1.812 MB / 378.4 MB, free: 1.852 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.1616/0.3232, allocations: 10.3 MB / 388.7 MB, free: 11 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03469/0.358, allocations: 19.78 MB / 408.5 MB, free: 8.473 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007967/0.366, allocations: 4.674 MB / 413.2 MB, free: 8.25 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008095/0.3741, allocations: 5.42 MB / 418.6 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00245/0.3766, allocations: 0.7773 MB / 419.4 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004385/0.381, allocations: 1.072 MB / 420.4 MB, free: 4.402 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002678/0.3837, allocations: 2.553 MB / 423 MB, free: 3.266 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003894/0.3876, allocations: 2.596 MB / 425.6 MB, free: 2.301 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02303/0.4106, allocations: 22.05 MB / 447.6 MB, free: 15.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.4106, allocations: 1.406 kB / 447.6 MB, free: 15.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.956e-06/0.4107, allocations: 0 / 447.6 MB, free: 15.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0006605/0.4113, allocations: 0 / 447.6 MB, free: 15.4 MB / 350.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.03368/0.445, allocations: 12.93 MB / 460.6 MB, free: 3.859 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.4451, allocations: 12.03 kB / 460.6 MB, free: 3.848 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04883/0.4939, allocations: 9.033 MB / 469.6 MB, free: 11.01 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01659/0.5105, allocations: 7.376 MB / 477 MB, free: 3.977 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008723/0.5114, allocations: 0.9526 MB / 477.9 MB, free: 3.035 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003813/0.5153, allocations: 1.247 MB / 479.2 MB, free: 1.805 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0423/0.5576, allocations: 19.95 MB / 499.1 MB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003439/0.558, allocations: 23.8 kB / 499.2 MB, free: 13.81 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00233/0.5603, allocations: 0.5124 MB / 499.7 MB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006774/0.561, allocations: 0.7371 MB / 0.4887 GB, free: 12.57 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03642/0.5974, allocations: 18.87 MB / 0.5071 GB, free: 9.691 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3972/0.9947, allocations: 63.54 MB / 0.5692 GB, free: 92.73 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02974/1.024, allocations: 56.91 MB / 0.6247 GB, free: 35.48 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01802/1.043, allocations: 11.53 MB / 0.636 GB, free: 27.89 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.975e-05/1.043, allocations: 76.33 kB / 0.6361 GB, free: 27.82 MB / 430.1 MB Notification: Performance of pre-optimization done (n=359): time 5.069e-06/1.043, allocations: 0 / 0.6361 GB, free: 27.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=399): time 0.03064/1.073, allocations: 17.56 MB / 0.6532 GB, free: 17.1 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.259e-05/1.073, allocations: 90.55 kB / 0.6533 GB, free: 17 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007231/1.081, allocations: 5.383 MB / 0.6586 GB, free: 11.64 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005644/1.081, allocations: 89.7 kB / 0.6587 GB, free: 11.55 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002449/1.084, allocations: 5.867 MB / 0.6644 GB, free: 5.648 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001138/1.085, allocations: 1.406 MB / 0.6658 GB, free: 4.254 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003385/1.085, allocations: 156 kB / 0.6659 GB, free: 4.102 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002819/1.085, allocations: 0.6087 MB / 0.6665 GB, free: 3.488 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003839/1.089, allocations: 3.088 MB / 0.6695 GB, free: 412 kB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006494/1.096, allocations: 6.702 MB / 0.6761 GB, free: 7.945 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006366/1.102, allocations: 4.593 MB / 0.6805 GB, free: 3.332 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-05/1.102, allocations: 39.95 kB / 0.6806 GB, free: 3.293 MB / 446.1 MB Notification: Performance of matching and sorting (n=988) (initialization): time 0.01777/1.12, allocations: 10.78 MB / 0.6911 GB, free: 8.453 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.109e-05/1.12, allocations: 60 kB / 0.6912 GB, free: 8.395 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001854/1.12, allocations: 124 kB / 0.6913 GB, free: 8.273 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002402/1.123, allocations: 0.9774 MB / 0.6922 GB, free: 7.281 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006377/1.129, allocations: 1.829 MB / 0.694 GB, free: 5.449 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01127/1.14, allocations: 9.735 MB / 0.7035 GB, free: 11.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005767/1.146, allocations: 447.3 kB / 0.704 GB, free: 10.87 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009535/1.147, allocations: 420 kB / 0.7044 GB, free: 10.46 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 568 * 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 (939): * Single equations (assignments): 934 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007396/1.155, allocations: 4.462 MB / 0.7087 GB, free: 5.98 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001088/1.156, allocations: 0.5402 MB / 0.7092 GB, free: 5.434 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.202/1.358, allocations: 6.602 MB / 0.7157 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.71e-05/1.358, allocations: 40.25 kB / 0.7157 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-05/1.358, allocations: 9.016 kB / 0.7157 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.523e-05/1.358, allocations: 20.83 kB / 0.7158 GB, free: 156.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03079/1.389, allocations: 16.11 MB / 0.7315 GB, free: 152.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.277e-05/1.389, allocations: 3.969 kB / 0.7315 GB, free: 152.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003054/1.392, allocations: 0.7772 MB / 0.7323 GB, free: 152.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001846/1.394, allocations: 0.7751 MB / 0.733 GB, free: 152.7 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002297/1.394, allocations: 94.19 kB / 0.7331 GB, free: 152.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007963/1.402, allocations: 8.851 MB / 0.7417 GB, free: 146.5 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/1.402, allocations: 1.781 kB / 0.7417 GB, free: 146.5 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01242/1.414, allocations: 10.04 MB / 0.7515 GB, free: 142.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002671/1.417, allocations: 1.105 MB / 0.7526 GB, free: 141.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000855/1.418, allocations: 73.56 kB / 0.7527 GB, free: 141.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00225/1.42, allocations: 233.4 kB / 0.7529 GB, free: 141.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004384/1.421, allocations: 267.6 kB / 0.7532 GB, free: 141.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002292/1.421, allocations: 119.6 kB / 0.7533 GB, free: 141.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004681/1.426, allocations: 3.529 MB / 0.7567 GB, free: 140.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.31e-07/1.426, allocations: 0 / 0.7567 GB, free: 140.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006332/1.432, allocations: 1.987 MB / 0.7587 GB, free: 140.1 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 (378): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005332/1.432, allocations: 254.1 kB / 0.7589 GB, free: 139.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01061/1.443, allocations: 8.089 MB / 0.7668 GB, free: 135.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/1.443, allocations: 0 / 0.7668 GB, free: 135.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004804/1.448, allocations: 3.575 MB / 0.7703 GB, free: 132.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00616/1.454, allocations: 1.187 MB / 0.7715 GB, free: 131.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04074/1.495, allocations: 24.84 MB / 0.7957 GB, free: 106.3 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01393/1.509, allocations: 7.793 MB / 0.8033 GB, free: 98.45 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007513/1.516, allocations: 2.367 MB / 0.8056 GB, free: 96.07 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001694/1.518, allocations: 435.3 kB / 0.8061 GB, free: 95.65 MB / 478.1 MB Notification: Performance of SimCode: time 1.944e-06/1.518, allocations: 0 / 0.8061 GB, free: 95.65 MB / 478.1 MB Notification: Performance of Templates: time 0.1797/1.698, allocations: 72.89 MB / 0.8772 GB, free: 22.71 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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