Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.excitation.electroMagneticConverter.Phi.re|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.is.1.|smee.is.2.|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.excitation.electroMagneticConverter.Phi.re|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.is.1.|smee.is.2.|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008898/0.0008899, allocations: 176.4 kB / 17.4 MB, free: 4.426 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.238/1.238, allocations: 223.3 MB / 241.4 MB, free: 9.852 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008264/0.0008264, allocations: 93.28 kB / 292.6 MB, free: 10.54 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005127/0.0005128, allocations: 11.98 kB / 352.4 MB, free: 14.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2258/0.2263, allocations: 50.41 MB / 402.8 MB, free: 32.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.288/0.5144, allocations: 120.6 MB / 0.5111 GB, free: 102.1 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000248/0.5147, allocations: 99.25 kB / 0.5112 GB, free: 102.1 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5301/1.045, allocations: 160.5 MB / 0.668 GB, free: 62.43 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.785e-06/1.045, allocations: 0 / 0.668 GB, free: 62.43 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000309/1.045, allocations: 97.33 kB / 0.6681 GB, free: 62.42 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1051 * Number of variables: 1051 Notification: Performance of Generate backend data structure: time 0.01142/1.057, allocations: 4.343 MB / 0.6723 GB, free: 60.94 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.755e-05/1.057, allocations: 7.625 kB / 0.6723 GB, free: 60.94 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004878/1.062, allocations: 0.9263 MB / 0.6732 GB, free: 60.7 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006834/1.068, allocations: 3.243 MB / 0.6764 GB, free: 60.05 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002326/1.069, allocations: 302.9 kB / 0.6767 GB, free: 60.04 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009912/1.07, allocations: 398.6 kB / 0.6771 GB, free: 60.04 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009161/1.079, allocations: 5.176 MB / 0.6821 GB, free: 59.52 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.225e-05/1.079, allocations: 4.625 kB / 0.6821 GB, free: 59.52 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003469/1.079, allocations: 171.1 kB / 0.6823 GB, free: 59.52 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001392/1.079, allocations: 170.9 kB / 0.6825 GB, free: 59.5 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006702/1.086, allocations: 4.221 MB / 0.6866 GB, free: 59.46 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02212/1.108, allocations: 16.87 MB / 0.7031 GB, free: 55.76 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005272/1.114, allocations: 8.416 MB / 0.7113 GB, free: 49.43 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002274/1.116, allocations: 1.704 MB / 0.7129 GB, free: 49.41 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006815/1.123, allocations: 4.909 MB / 0.7177 GB, free: 47.54 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.095e-05/1.123, allocations: 47.78 kB / 0.7178 GB, free: 47.48 MB / 426.7 MB Notification: Performance of pre-optimization done (n=157): time 3.356e-06/1.123, allocations: 3.25 kB / 0.7178 GB, free: 47.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=160): time 0.009718/1.133, allocations: 6.154 MB / 0.7238 GB, free: 44.38 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.602e-05/1.133, allocations: 72.69 kB / 0.7239 GB, free: 44.32 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002569/1.135, allocations: 2.252 MB / 0.7261 GB, free: 43.44 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.6e-05/1.135, allocations: 53.27 kB / 0.7261 GB, free: 43.39 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008163/1.136, allocations: 1.836 MB / 0.7279 GB, free: 41.98 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002783/1.136, allocations: 0.5486 MB / 0.7284 GB, free: 41.56 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.769e-05/1.137, allocations: 46.91 kB / 0.7285 GB, free: 41.53 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.32e-05/1.137, allocations: 389.7 kB / 0.7289 GB, free: 41.19 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001164/1.138, allocations: 0.8312 MB / 0.7297 GB, free: 40.88 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001359/1.139, allocations: 1.52 MB / 0.7312 GB, free: 39.7 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002655/1.142, allocations: 2.515 MB / 0.7336 GB, free: 38.07 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.418e-06/1.142, allocations: 6.125 kB / 0.7336 GB, free: 38.07 MB / 426.7 MB Notification: Performance of matching and sorting (n=271) (initialization): time 0.003802/1.146, allocations: 2.846 MB / 0.7364 GB, free: 36.95 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/1.146, allocations: 11.91 kB / 0.7364 GB, free: 36.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.13e-05/1.146, allocations: 27.06 kB / 0.7364 GB, free: 36.94 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002614/1.146, allocations: 125.2 kB / 0.7366 GB, free: 36.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001712/1.148, allocations: 0.5414 MB / 0.7371 GB, free: 36.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001127/1.149, allocations: 1.806 MB / 0.7388 GB, free: 35.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00157/1.15, allocations: 126.1 kB / 0.739 GB, free: 35.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001263/1.151, allocations: 95.61 kB / 0.7391 GB, free: 35.23 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 99 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (265): * Single equations (assignments): 263 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00194/1.153, allocations: 1.194 MB / 0.7402 GB, free: 34.61 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003686/1.153, allocations: 245.8 kB / 0.7405 GB, free: 34.48 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003447/1.156, allocations: 2.451 MB / 0.7429 GB, free: 33.34 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.608e-06/1.156, allocations: 14.72 kB / 0.7429 GB, free: 33.34 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.477e-06/1.156, allocations: 10.56 kB / 0.7429 GB, free: 33.34 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.447e-05/1.156, allocations: 9.891 kB / 0.7429 GB, free: 33.34 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007672/1.164, allocations: 5.758 MB / 0.7485 GB, free: 30.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/1.164, allocations: 3.906 kB / 0.7485 GB, free: 30.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001183/1.165, allocations: 297.7 kB / 0.7488 GB, free: 30.74 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006837/1.166, allocations: 308.7 kB / 0.7491 GB, free: 30.64 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.311e-05/1.166, allocations: 44.41 kB / 0.7491 GB, free: 30.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00461/1.171, allocations: 6.341 MB / 0.7553 GB, free: 25.32 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/1.171, allocations: 0 / 0.7553 GB, free: 25.32 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004705/1.175, allocations: 3.561 MB / 0.7588 GB, free: 23.62 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009998/1.177, allocations: 496.7 kB / 0.7593 GB, free: 23.29 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002686/1.177, allocations: 39.19 kB / 0.7593 GB, free: 23.26 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/1.178, allocations: 101.6 kB / 0.7594 GB, free: 23.23 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002499/1.178, allocations: 110.1 kB / 0.7595 GB, free: 23.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-05/1.178, allocations: 48.31 kB / 0.7596 GB, free: 23.2 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00211/1.18, allocations: 1.516 MB / 0.761 GB, free: 22.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.6e-07/1.18, allocations: 0 / 0.761 GB, free: 22.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002184/1.182, allocations: 0.73 MB / 0.7618 GB, free: 22.52 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.excitation.electroMagneticConverter.Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,mechanicalSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (132): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000547/1.183, allocations: 405.5 kB / 0.7621 GB, free: 22.36 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003068/1.186, allocations: 2.249 MB / 0.7643 GB, free: 20.95 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/1.186, allocations: 4 kB / 0.7643 GB, free: 20.95 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001759/1.188, allocations: 1.454 MB / 0.7658 GB, free: 19.61 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002886/1.191, allocations: 0.5709 MB / 0.7663 GB, free: 19.15 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/1.201, allocations: 8.321 MB / 0.7744 GB, free: 11.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001844/1.203, allocations: 2.668 MB / 0.7771 GB, free: 9.398 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001925/1.205, allocations: 0.5563 MB / 0.7776 GB, free: 9.016 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003999/1.205, allocations: 159.2 kB / 0.7777 GB, free: 8.867 MB / 426.7 MB Notification: Performance of SimCode: time 5.81e-07/1.205, allocations: 4 kB / 0.7778 GB, free: 8.863 MB / 426.7 MB Notification: Performance of Templates: time 0.0529/1.258, allocations: 33.8 MB / 0.8108 GB, free: 2.043 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches