Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|smpm.is.1.|smpm.is.2.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009094/0.0009095, allocations: 175.5 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.227/1.227, allocations: 221.3 MB / 235.5 MB, free: 2.902 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.000856/0.000856, allocations: 98.08 kB / 286.5 MB, free: 184 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.858e-05/1.86e-05, allocations: 4 kB / 343.8 MB, free: 4.301 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08222/0.08225, allocations: 50.42 MB / 394.3 MB, free: 1.844 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3075/0.3898, allocations: 110.2 MB / 0.4926 GB, free: 9.305 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002329/0.39, allocations: 91.78 kB / 0.4927 GB, free: 9.219 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1378/0.5278, allocations: 53.21 MB / 0.5447 GB, free: 3.688 MB / 426.7 MB Notification: Performance of FrontEnd: time 9.71e-07/0.5278, allocations: 0 / 0.5447 GB, free: 3.688 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001657/0.528, allocations: 71.94 kB / 0.5447 GB, free: 3.617 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.004475/0.5325, allocations: 2.593 MB / 0.5473 GB, free: 0.9648 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.5326, allocations: 8.031 kB / 0.5473 GB, free: 0.957 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007561/0.5333, allocations: 348 kB / 0.5476 GB, free: 0.6133 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1971/0.7305, allocations: 1.904 MB / 0.5495 GB, free: 99 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00015/0.7307, allocations: 188.9 kB / 0.5496 GB, free: 98.99 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003994/0.7311, allocations: 245.4 kB / 0.5499 GB, free: 98.99 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005019/0.7361, allocations: 3.184 MB / 0.553 GB, free: 98.59 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.003e-05/0.7362, allocations: 15.77 kB / 0.553 GB, free: 98.58 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002198/0.7364, allocations: 112.4 kB / 0.5531 GB, free: 98.58 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001186/0.7365, allocations: 120.4 kB / 0.5532 GB, free: 98.57 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003975/0.7405, allocations: 2.515 MB / 0.5557 GB, free: 98.54 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01455/0.7551, allocations: 10.48 MB / 0.5659 GB, free: 95.86 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001669/0.7568, allocations: 1.422 MB / 0.5673 GB, free: 95.53 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009801/0.7577, allocations: 0.7556 MB / 0.568 GB, free: 95.52 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002929/0.7581, allocations: 217.1 kB / 0.5682 GB, free: 95.33 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.078e-05/0.7581, allocations: 45.59 kB / 0.5683 GB, free: 95.29 MB / 426.7 MB Notification: Performance of pre-optimization done (n=104): time 3.957e-06/0.7581, allocations: 0 / 0.5683 GB, free: 95.29 MB / 426.7 MB Notification: Performance of matching and sorting (n=132): time 0.01208/0.7702, allocations: 6.17 MB / 0.5743 GB, free: 93.56 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.071e-05/0.7702, allocations: 71.19 kB / 0.5744 GB, free: 93.5 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001764/0.772, allocations: 1.533 MB / 0.5759 GB, free: 92.91 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.873e-05/0.7721, allocations: 45.58 kB / 0.5759 GB, free: 92.86 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005634/0.7727, allocations: 1.266 MB / 0.5771 GB, free: 91.89 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002391/0.7729, allocations: 461.7 kB / 0.5776 GB, free: 91.54 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.582e-05/0.773, allocations: 38.16 kB / 0.5776 GB, free: 91.52 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.258e-05/0.7731, allocations: 363.2 kB / 0.578 GB, free: 91.19 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008723/0.774, allocations: 0.7818 MB / 0.5787 GB, free: 90.9 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001068/0.775, allocations: 1.279 MB / 0.58 GB, free: 89.99 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001125/0.7762, allocations: 1.009 MB / 0.581 GB, free: 89.64 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.7762, allocations: 6.594 kB / 0.581 GB, free: 89.64 MB / 426.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.003075/0.7793, allocations: 2.492 MB / 0.5834 GB, free: 88.78 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.7793, allocations: 14.16 kB / 0.5834 GB, free: 88.78 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.829e-05/0.7793, allocations: 18.25 kB / 0.5834 GB, free: 88.78 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000531/0.7799, allocations: 240.9 kB / 0.5837 GB, free: 88.71 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001417/0.7813, allocations: 443.1 kB / 0.5841 GB, free: 88.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001751/0.7831, allocations: 2.996 MB / 0.587 GB, free: 85.97 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001283/0.7844, allocations: 126 kB / 0.5871 GB, free: 85.94 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001135/0.7845, allocations: 77.02 kB / 0.5872 GB, free: 85.92 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (206): * Single equations (assignments): 202 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002248/0.7847, allocations: 203.4 kB / 0.5874 GB, free: 85.75 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002355/0.785, allocations: 195.8 kB / 0.5876 GB, free: 85.65 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002791/0.7877, allocations: 2.09 MB / 0.5896 GB, free: 84.82 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.7878, allocations: 15.81 kB / 0.5896 GB, free: 84.82 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.7878, allocations: 3.125 kB / 0.5896 GB, free: 84.82 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.209e-05/0.7878, allocations: 11.22 kB / 0.5897 GB, free: 84.82 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006409/0.7942, allocations: 4.837 MB / 0.5944 GB, free: 82.85 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/0.7942, allocations: 3.531 kB / 0.5944 GB, free: 82.85 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001091/0.7953, allocations: 285.4 kB / 0.5947 GB, free: 82.83 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004519/0.7958, allocations: 212.3 kB / 0.5949 GB, free: 82.76 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.666e-05/0.7959, allocations: 28.86 kB / 0.5949 GB, free: 82.74 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001629/0.7975, allocations: 2.973 MB / 0.5978 GB, free: 80.01 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.7975, allocations: 0 / 0.5978 GB, free: 80.01 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003618/0.8012, allocations: 3.359 MB / 0.6011 GB, free: 78.41 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007492/0.8019, allocations: 452.3 kB / 0.6015 GB, free: 78.13 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002045/0.8021, allocations: 23.62 kB / 0.6015 GB, free: 78.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009235/0.8031, allocations: 98.5 kB / 0.6016 GB, free: 78.09 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001512/0.8032, allocations: 92.28 kB / 0.6017 GB, free: 78.08 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.747e-05/0.8033, allocations: 37.64 kB / 0.6017 GB, free: 78.07 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001415/0.8047, allocations: 1.166 MB / 0.6029 GB, free: 77.62 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8048, allocations: 3.562 kB / 0.6029 GB, free: 77.62 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00139/0.8062, allocations: 0.5244 MB / 0.6034 GB, free: 77.56 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (130): * Single equations (assignments): 126 * 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: 2 * 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: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005151/0.8067, allocations: 408.5 kB / 0.6038 GB, free: 77.41 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00269/0.8094, allocations: 2.368 MB / 0.6061 GB, free: 76.31 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.8094, allocations: 0 / 0.6061 GB, free: 76.31 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001395/0.8108, allocations: 1.362 MB / 0.6074 GB, free: 75.55 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001669/0.8125, allocations: 456.3 kB / 0.6079 GB, free: 75.43 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00578/0.8183, allocations: 3.944 MB / 0.6117 GB, free: 73.77 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001258/0.8195, allocations: 2.073 MB / 0.6137 GB, free: 72.8 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001226/0.8208, allocations: 0.5105 MB / 0.6142 GB, free: 72.76 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000372/0.8212, allocations: 141.6 kB / 0.6144 GB, free: 72.75 MB / 426.7 MB Notification: Performance of SimCode: time 1.563e-06/0.8212, allocations: 0 / 0.6144 GB, free: 72.75 MB / 426.7 MB Notification: Performance of Templates: time 0.03609/0.8573, allocations: 27.71 MB / 0.6414 GB, free: 55.89 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches