Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.004057/0.004057, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.536/2.536, allocations: 205.3 MB / 214.1 MB, free: 14.16 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001131/0.001131, allocations: 100.7 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.029e-05/2.039e-05, allocations: 4 kB / 314.8 MB, free: 9.152 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3478/0.3478, allocations: 47.57 MB / 362.3 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2013/0.5492, allocations: 118.7 MB / 481.1 MB, free: 15.48 MB / 379.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003498/0.5496, allocations: 91.73 kB / 481.2 MB, free: 15.39 MB / 379.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.8978/1.447, allocations: 158.4 MB / 0.6246 GB, free: 16.51 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.344e-06/1.447, allocations: 4 kB / 0.6246 GB, free: 16.51 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.000417/1.448, allocations: 99.86 kB / 0.6247 GB, free: 16.41 MB / 395.1 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.01609/1.464, allocations: 3.907 MB / 0.6285 GB, free: 12.43 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.989e-05/1.464, allocations: 8.031 kB / 0.6286 GB, free: 12.43 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007673/1.472, allocations: 0.9235 MB / 0.6295 GB, free: 11.5 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0146/1.486, allocations: 3.798 MB / 0.6332 GB, free: 7.641 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003111/1.487, allocations: 132 kB / 0.6333 GB, free: 7.512 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001547/1.488, allocations: 236.2 kB / 0.6335 GB, free: 7.281 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01221/1.501, allocations: 3.781 MB / 0.6372 GB, free: 3.492 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01598/1.517, allocations: 4.441 MB / 0.6415 GB, free: 14.88 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001836/1.517, allocations: 4 kB / 0.6415 GB, free: 14.88 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001078/1.518, allocations: 4 kB / 0.6416 GB, free: 14.87 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002817/1.518, allocations: 176 kB / 0.6417 GB, free: 14.7 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3456/1.864, allocations: 16.18 MB / 0.6575 GB, free: 54.9 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009475/1.873, allocations: 8.199 MB / 0.6655 GB, free: 48.57 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003987/1.877, allocations: 1.55 MB / 0.667 GB, free: 48.56 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01259/1.89, allocations: 4.723 MB / 0.6717 GB, free: 47.48 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.878e-05/1.89, allocations: 55.42 kB / 0.6717 GB, free: 47.43 MB / 411.1 MB Notification: Performance of pre-optimization done (n=152): time 5.991e-06/1.89, allocations: 0 / 0.6717 GB, free: 47.43 MB / 411.1 MB Notification: Performance of matching and sorting (n=155): time 0.01383/1.904, allocations: 4.713 MB / 0.6763 GB, free: 46.42 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.806e-05/1.904, allocations: 69.44 kB / 0.6764 GB, free: 46.36 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003693/1.908, allocations: 1.649 MB / 0.678 GB, free: 46.15 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003744/1.908, allocations: 25.7 kB / 0.678 GB, free: 46.12 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00138/1.91, allocations: 1.776 MB / 0.6797 GB, free: 45.4 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007653/1.91, allocations: 0.5082 MB / 0.6802 GB, free: 45.13 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001579/1.911, allocations: 0 / 0.6802 GB, free: 45.13 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0001654/1.911, allocations: 396.3 kB / 0.6806 GB, free: 44.82 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001641/1.913, allocations: 0.7063 MB / 0.6813 GB, free: 44.81 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002062/1.915, allocations: 1.386 MB / 0.6827 GB, free: 43.99 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003216/1.918, allocations: 1.14 MB / 0.6838 GB, free: 43.96 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.394e-05/1.918, allocations: 10.88 kB / 0.6838 GB, free: 43.96 MB / 411.1 MB Notification: Performance of matching and sorting (n=267) (initialization): time 0.006788/1.925, allocations: 2.448 MB / 0.6862 GB, free: 43.73 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.148e-05/1.925, allocations: 16.66 kB / 0.6862 GB, free: 43.73 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.26e-05/1.925, allocations: 19.72 kB / 0.6862 GB, free: 43.73 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000437/1.925, allocations: 121.8 kB / 0.6863 GB, free: 43.71 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004033/1.929, allocations: 0.5399 MB / 0.6869 GB, free: 43.71 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002059/1.931, allocations: 1.734 MB / 0.6885 GB, free: 42.44 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003046/1.935, allocations: 77.47 kB / 0.6886 GB, free: 42.44 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004767/1.935, allocations: 91.56 kB / 0.6887 GB, free: 42.44 MB / 411.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 100 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (261): * Single equations (assignments): 259 * 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.000531/1.936, allocations: 173.1 kB / 0.6889 GB, free: 42.32 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007108/1.936, allocations: 222.1 kB / 0.6891 GB, free: 42.2 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006717/1.943, allocations: 2.252 MB / 0.6913 GB, free: 41.88 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.611e-05/1.943, allocations: 15.41 kB / 0.6913 GB, free: 41.88 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.478e-05/1.943, allocations: 4.906 kB / 0.6913 GB, free: 41.88 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.301e-05/1.943, allocations: 12.81 kB / 0.6913 GB, free: 41.87 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01525/1.959, allocations: 5.05 MB / 0.6962 GB, free: 41.23 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/1.959, allocations: 0 / 0.6962 GB, free: 41.23 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002555/1.961, allocations: 292.8 kB / 0.6965 GB, free: 41.23 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001381/1.963, allocations: 308.5 kB / 0.6968 GB, free: 41.21 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002709/1.963, allocations: 15.05 kB / 0.6968 GB, free: 41.21 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007964/1.971, allocations: 6.047 MB / 0.7027 GB, free: 37.36 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.293e-06/1.971, allocations: 3.562 kB / 0.7027 GB, free: 37.36 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008876/1.98, allocations: 3.416 MB / 0.7061 GB, free: 36.6 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002014/1.982, allocations: 466.4 kB / 0.7065 GB, free: 36.39 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009331/1.983, allocations: 12.52 kB / 0.7065 GB, free: 36.39 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002781/1.986, allocations: 72.95 kB / 0.7066 GB, free: 36.39 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006771/1.986, allocations: 115.5 kB / 0.7067 GB, free: 36.39 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001816/1.987, allocations: 43.91 kB / 0.7068 GB, free: 36.39 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.003885/1.991, allocations: 1.219 MB / 0.7079 GB, free: 36.25 MB / 411.1 MB Notification: Performance of sort global known variables: time 1.212e-06/1.991, allocations: 0 / 0.7079 GB, free: 36.25 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.00512/1.996, allocations: 0.6113 MB / 0.7085 GB, free: 36.25 MB / 411.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (127): * Single equations (assignments): 124 * 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.001206/1.997, allocations: 388 kB / 0.7089 GB, free: 36.14 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.005286/2.002, allocations: 1.969 MB / 0.7108 GB, free: 35.93 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 7.615e-06/2.002, allocations: 3.969 kB / 0.7108 GB, free: 35.93 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003117/2.006, allocations: 1.317 MB / 0.7121 GB, free: 35.59 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003823/2.009, allocations: 428 kB / 0.7125 GB, free: 35.57 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01572/2.025, allocations: 5.39 MB / 0.7178 GB, free: 34.25 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003347/2.029, allocations: 2.669 MB / 0.7204 GB, free: 33.47 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001145/2.03, allocations: 167.8 kB / 0.7206 GB, free: 33.46 MB / 411.1 MB Notification: Performance of SimCode: time 1.182e-06/2.03, allocations: 0 / 0.7206 GB, free: 33.46 MB / 411.1 MB Notification: Performance of Templates: time 0.1518/2.182, allocations: 88.73 MB / 0.8072 GB, free: 2.902 MB / 427.1 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMEE_DOL/SMEE_DOL.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches