Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|smee.is.1.|smee.is.2.|smee.idq_dr.1.|smee.idq_rr.2.|smee.idq_sr.1.|smee.idq_sr.2.|smee.inertiaRotor.phi|smee.inertiaRotor.w|smee.lesigma.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 175.3 kB / 13.63 MB, free: 1.684 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.272/1.272, allocations: 221.3 MB / 235.5 MB, free: 2.895 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008543/0.0008543, allocations: 86.61 kB / 286.5 MB, free: 184 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.214e-05/2.216e-05, allocations: 4 kB / 343.8 MB, free: 4.301 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09809/0.09812, allocations: 50.42 MB / 394.3 MB, free: 1.844 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3344/0.4326, allocations: 115 MB / 0.4974 GB, free: 4.438 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002405/0.4329, allocations: 87.78 kB / 0.4974 GB, free: 4.355 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4176/0.8505, allocations: 86.34 MB / 0.5818 GB, free: 99.5 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.8506, allocations: 0 / 0.5818 GB, free: 99.5 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001942/0.8508, allocations: 74.38 kB / 0.5818 GB, free: 99.48 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: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.006142/0.8569, allocations: 2.798 MB / 0.5846 GB, free: 98.28 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.857, allocations: 15.38 kB / 0.5846 GB, free: 98.27 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001651/0.8587, allocations: 442.6 kB / 0.585 GB, free: 98.09 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004163/0.8628, allocations: 1.953 MB / 0.5869 GB, free: 97.55 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001367/0.863, allocations: 209.2 kB / 0.5871 GB, free: 97.52 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005288/0.8635, allocations: 270.7 kB / 0.5874 GB, free: 97.43 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005529/0.8691, allocations: 3.401 MB / 0.5907 GB, free: 95.8 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.645e-05/0.8692, allocations: 10.33 kB / 0.5907 GB, free: 95.8 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002525/0.8694, allocations: 110.8 kB / 0.5908 GB, free: 95.72 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.455e-05/0.8695, allocations: 110.6 kB / 0.5909 GB, free: 95.71 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004009/0.8736, allocations: 2.698 MB / 0.5935 GB, free: 94.66 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01595/0.8895, allocations: 11.24 MB / 0.6045 GB, free: 88.69 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002138/0.8917, allocations: 2.252 MB / 0.6067 GB, free: 87.21 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001109/0.8928, allocations: 0.9774 MB / 0.6077 GB, free: 86.86 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003026/0.8932, allocations: 224.9 kB / 0.6079 GB, free: 86.66 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.507e-05/0.8932, allocations: 55.34 kB / 0.6079 GB, free: 86.6 MB / 426.7 MB Notification: Performance of pre-optimization done (n=134): time 3.026e-06/0.8932, allocations: 0 / 0.6079 GB, free: 86.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=158): time 0.01446/0.9077, allocations: 7.209 MB / 0.615 GB, free: 84.09 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.837e-05/0.9077, allocations: 70.59 kB / 0.615 GB, free: 84.02 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002313/0.9101, allocations: 1.716 MB / 0.6167 GB, free: 83.32 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001521/0.9102, allocations: 55.17 kB / 0.6168 GB, free: 83.26 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005743/0.9108, allocations: 1.302 MB / 0.618 GB, free: 82.27 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003176/0.9111, allocations: 0.5316 MB / 0.6186 GB, free: 81.85 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.37e-05/0.9112, allocations: 38.72 kB / 0.6186 GB, free: 81.82 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.362e-05/0.9113, allocations: 382.8 kB / 0.619 GB, free: 81.48 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001136/0.9125, allocations: 0.8815 MB / 0.6198 GB, free: 80.78 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001234/0.9137, allocations: 1.328 MB / 0.6211 GB, free: 79.37 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001275/0.915, allocations: 1.098 MB / 0.6222 GB, free: 78.43 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.845e-06/0.915, allocations: 8 kB / 0.6222 GB, free: 78.42 MB / 426.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.00438/0.9194, allocations: 3.023 MB / 0.6251 GB, free: 75.76 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.527e-05/0.9194, allocations: 8 kB / 0.6252 GB, free: 75.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.009e-05/0.9195, allocations: 23.56 kB / 0.6252 GB, free: 75.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001455/0.9209, allocations: 0.6178 MB / 0.6258 GB, free: 75.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00159/0.9225, allocations: 443.4 kB / 0.6262 GB, free: 74.87 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006438/0.929, allocations: 5.719 MB / 0.6318 GB, free: 69.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002129/0.9312, allocations: 135.9 kB / 0.6319 GB, free: 69.42 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002287/0.9314, allocations: 72 kB / 0.632 GB, free: 69.35 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (197): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(6,72.2%) 27} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003524/0.9318, allocations: 209 kB / 0.6322 GB, free: 69.14 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004424/0.9322, allocations: 217.4 kB / 0.6324 GB, free: 68.93 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004187/0.9364, allocations: 2.722 MB / 0.6351 GB, free: 66.18 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.256e-05/0.9365, allocations: 16 kB / 0.6351 GB, free: 66.17 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.9365, allocations: 4 kB / 0.6351 GB, free: 66.16 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.537e-05/0.9365, allocations: 19.61 kB / 0.6351 GB, free: 66.15 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00863/0.9451, allocations: 5.762 MB / 0.6407 GB, free: 60.31 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.698e-05/0.9452, allocations: 4 kB / 0.6407 GB, free: 60.31 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00113/0.9463, allocations: 283.9 kB / 0.641 GB, free: 60.03 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001708/0.948, allocations: 0.6964 MB / 0.6417 GB, free: 59.33 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001267/0.9482, allocations: 35.98 kB / 0.6417 GB, free: 59.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007236/0.9554, allocations: 7.435 MB / 0.649 GB, free: 51.61 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.9555, allocations: 3.938 kB / 0.649 GB, free: 51.61 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005865/0.9613, allocations: 4.134 MB / 0.653 GB, free: 47.32 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001195/0.9626, allocations: 0.4983 MB / 0.6535 GB, free: 46.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000287/0.9629, allocations: 35.98 kB / 0.6535 GB, free: 46.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001159/0.964, allocations: 111.9 kB / 0.6536 GB, free: 46.66 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000299/0.9643, allocations: 125.1 kB / 0.6538 GB, free: 46.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000103/0.9644, allocations: 47.98 kB / 0.6538 GB, free: 46.49 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001736/0.9662, allocations: 1.31 MB / 0.6551 GB, free: 45.15 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.9662, allocations: 0 / 0.6551 GB, free: 45.15 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002058/0.9683, allocations: 0.6835 MB / 0.6557 GB, free: 44.46 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.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 (122): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,75.0%) 27,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005974/0.9689, allocations: 337.7 kB / 0.6561 GB, free: 44.16 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003608/0.9725, allocations: 2.67 MB / 0.6587 GB, free: 41.44 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.9725, allocations: 0 / 0.6587 GB, free: 41.44 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002206/0.9747, allocations: 1.676 MB / 0.6603 GB, free: 39.73 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002266/0.977, allocations: 457 kB / 0.6607 GB, free: 39.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007051/0.9841, allocations: 4.651 MB / 0.6653 GB, free: 34.62 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001419/0.9855, allocations: 2.206 MB / 0.6674 GB, free: 32.39 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001559/0.9871, allocations: 452.6 kB / 0.6679 GB, free: 31.95 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004186/0.9875, allocations: 131.4 kB / 0.668 GB, free: 31.82 MB / 426.7 MB Notification: Performance of SimCode: time 8.61e-07/0.9875, allocations: 3.938 kB / 0.668 GB, free: 31.82 MB / 426.7 MB Notification: Performance of Templates: time 0.05105/1.039, allocations: 34.34 MB / 0.7015 GB, free: 13.71 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches