Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001442/0.001442, allocations: 202.9 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.286/1.286, allocations: 226.5 MB / 245.4 MB, free: 6.512 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007415/0.0007415, allocations: 107.9 kB / 297.4 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002191/0.0002191, allocations: 12 kB / 357.4 MB, free: 10.72 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1887/0.1889, allocations: 51.28 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2796/0.4686, allocations: 111.1 MB / 0.5076 GB, free: 97.76 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002198/0.4689, allocations: 88.2 kB / 0.5077 GB, free: 97.76 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1196/0.5884, allocations: 53.19 MB / 0.5596 GB, free: 52.95 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.5885, allocations: 0 / 0.5596 GB, free: 52.95 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001619/0.5887, allocations: 75.88 kB / 0.5597 GB, free: 52.87 MB / 378.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.005613/0.5943, allocations: 2.893 MB / 0.5625 GB, free: 49.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.5943, allocations: 8.031 kB / 0.5625 GB, free: 49.9 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001097/0.5954, allocations: 361 kB / 0.5629 GB, free: 49.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003602/0.5991, allocations: 1.982 MB / 0.5648 GB, free: 47.51 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.5992, allocations: 185.4 kB / 0.565 GB, free: 47.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003717/0.5996, allocations: 260.2 kB / 0.5652 GB, free: 47.07 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004606/0.6042, allocations: 3.252 MB / 0.5684 GB, free: 43.67 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.401e-05/0.6043, allocations: 12.12 kB / 0.5684 GB, free: 43.66 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002228/0.6045, allocations: 111.9 kB / 0.5685 GB, free: 43.55 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.613e-05/0.6046, allocations: 116.9 kB / 0.5686 GB, free: 43.43 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003722/0.6083, allocations: 2.6 MB / 0.5712 GB, free: 40.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01312/0.6214, allocations: 10.49 MB / 0.5814 GB, free: 29.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001703/0.6232, allocations: 1.45 MB / 0.5828 GB, free: 28.47 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009347/0.6242, allocations: 0.7729 MB / 0.5836 GB, free: 27.7 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003044/0.6245, allocations: 219.1 kB / 0.5838 GB, free: 27.44 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.288e-05/0.6245, allocations: 43.56 kB / 0.5838 GB, free: 27.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=104): time 3.136e-06/0.6245, allocations: 0 / 0.5838 GB, free: 27.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=132): time 0.01281/0.6373, allocations: 7.045 MB / 0.5907 GB, free: 20.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.489e-05/0.6374, allocations: 68.72 kB / 0.5908 GB, free: 20.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002114/0.6395, allocations: 1.755 MB / 0.5925 GB, free: 18.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.921e-05/0.6396, allocations: 49.7 kB / 0.5925 GB, free: 18.36 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005245/0.6401, allocations: 1.267 MB / 0.5938 GB, free: 17.07 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002255/0.6404, allocations: 453.5 kB / 0.5942 GB, free: 16.62 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.399e-05/0.6405, allocations: 36 kB / 0.5942 GB, free: 16.59 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.958e-05/0.6406, allocations: 369.9 kB / 0.5946 GB, free: 16.22 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00101/0.6416, allocations: 0.8003 MB / 0.5954 GB, free: 15.42 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001131/0.6427, allocations: 1.314 MB / 0.5967 GB, free: 13.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002279/0.645, allocations: 2.273 MB / 0.5989 GB, free: 11.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.244e-06/0.645, allocations: 4 kB / 0.5989 GB, free: 11.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.003391/0.6484, allocations: 2.537 MB / 0.6014 GB, free: 8.828 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.6485, allocations: 19.92 kB / 0.6014 GB, free: 8.809 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.654e-05/0.6485, allocations: 16 kB / 0.6014 GB, free: 8.793 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005379/0.649, allocations: 239.2 kB / 0.6016 GB, free: 8.547 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001376/0.6504, allocations: 443.6 kB / 0.602 GB, free: 8.113 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001792/0.6522, allocations: 2.998 MB / 0.605 GB, free: 4.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00136/0.6536, allocations: 139.6 kB / 0.6051 GB, free: 4.703 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001205/0.6537, allocations: 72 kB / 0.6052 GB, free: 4.633 MB / 378.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 () * Number of clocked 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.001351/0.6551, allocations: 0.8213 MB / 0.606 GB, free: 3.801 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002539/0.6553, allocations: 189.7 kB / 0.6062 GB, free: 3.613 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00285/0.6582, allocations: 2.133 MB / 0.6082 GB, free: 1.461 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.6582, allocations: 12 kB / 0.6082 GB, free: 1.449 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.6582, allocations: 0 / 0.6082 GB, free: 1.449 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.129e-05/0.6582, allocations: 15.91 kB / 0.6083 GB, free: 1.434 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007279/0.6655, allocations: 4.878 MB / 0.613 GB, free: 12.45 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.123e-06/0.6656, allocations: 3.984 kB / 0.613 GB, free: 12.45 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001128/0.6667, allocations: 291.6 kB / 0.6133 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005126/0.6672, allocations: 211.4 kB / 0.6135 GB, free: 11.95 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.273e-05/0.6673, allocations: 27.94 kB / 0.6135 GB, free: 11.92 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002211/0.6695, allocations: 2.979 MB / 0.6164 GB, free: 8.668 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.6696, allocations: 4 kB / 0.6164 GB, free: 8.664 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004604/0.6742, allocations: 3.281 MB / 0.6197 GB, free: 5.328 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009242/0.6751, allocations: 442.6 kB / 0.6201 GB, free: 4.875 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002124/0.6753, allocations: 24 kB / 0.6201 GB, free: 4.852 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009198/0.6763, allocations: 95.86 kB / 0.6202 GB, free: 4.758 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001753/0.6764, allocations: 92.88 kB / 0.6203 GB, free: 4.668 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.233e-05/0.6765, allocations: 36 kB / 0.6203 GB, free: 4.633 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00188/0.6784, allocations: 1.196 MB / 0.6215 GB, free: 3.445 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.6784, allocations: 0 / 0.6215 GB, free: 3.445 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001695/0.6801, allocations: 0.5273 MB / 0.622 GB, free: 2.918 MB / 394.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 () * Number of clocked 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.000653/0.6808, allocations: 411.7 kB / 0.6224 GB, free: 2.516 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00361/0.6844, allocations: 2.426 MB / 0.6248 GB, free: 16 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.6844, allocations: 0 / 0.6248 GB, free: 16 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001858/0.6863, allocations: 1.382 MB / 0.6261 GB, free: 14.57 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002699/0.689, allocations: 470.5 kB / 0.6266 GB, free: 14.11 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00824/0.6973, allocations: 5.945 MB / 0.6324 GB, free: 8.102 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001658/0.699, allocations: 1.982 MB / 0.6343 GB, free: 6.09 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006979/0.6997, allocations: 155.4 kB / 0.6344 GB, free: 5.938 MB / 410.7 MB Notification: Performance of SimCode: time 2.295e-06/0.6997, allocations: 0 / 0.6344 GB, free: 5.938 MB / 410.7 MB Notification: Performance of Templates: time 0.2576/0.9573, allocations: 83.87 MB / 0.7163 GB, free: 104.3 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches