Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001085/0.001085, allocations: 201.8 kB / 18.11 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.294/1.294, allocations: 226.5 MB / 245.4 MB, free: 8.254 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007638/0.0007638, allocations: 97.56 kB / 297.5 MB, free: 6.926 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002174/0.0002175, allocations: 8 kB / 358.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2318/0.2321, allocations: 51.29 MB / 409.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2821/0.5143, allocations: 111.1 MB / 0.5083 GB, free: 97.78 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002259/0.5145, allocations: 87.08 kB / 0.5084 GB, free: 97.78 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1223/0.6368, allocations: 53.19 MB / 0.5603 GB, free: 52.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.6369, allocations: 0 / 0.5603 GB, free: 52.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002409/0.6371, allocations: 75.86 kB / 0.5604 GB, free: 52.81 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.006301/0.6434, allocations: 2.89 MB / 0.5632 GB, free: 49.85 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/0.6435, allocations: 8.031 kB / 0.5632 GB, free: 49.84 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001145/0.6446, allocations: 361 kB / 0.5636 GB, free: 49.49 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003692/0.6483, allocations: 1.986 MB / 0.5655 GB, free: 47.45 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001162/0.6485, allocations: 185.4 kB / 0.5657 GB, free: 47.26 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004484/0.6489, allocations: 256.2 kB / 0.5659 GB, free: 47.01 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00491/0.6538, allocations: 3.252 MB / 0.5691 GB, free: 43.61 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.281e-05/0.6539, allocations: 16.11 kB / 0.5691 GB, free: 43.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000253/0.6542, allocations: 111.9 kB / 0.5692 GB, free: 43.48 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.373e-05/0.6543, allocations: 120.9 kB / 0.5693 GB, free: 43.36 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004127/0.6584, allocations: 2.588 MB / 0.5719 GB, free: 40.76 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01374/0.6722, allocations: 10.49 MB / 0.5821 GB, free: 29.92 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001741/0.674, allocations: 1.444 MB / 0.5835 GB, free: 28.42 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009692/0.675, allocations: 0.7768 MB / 0.5843 GB, free: 27.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002653/0.6753, allocations: 215.1 kB / 0.5845 GB, free: 27.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.6753, allocations: 43.56 kB / 0.5845 GB, free: 27.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=104): time 3.166e-06/0.6753, allocations: 0 / 0.5845 GB, free: 27.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=132): time 0.01348/0.6888, allocations: 7.049 MB / 0.5914 GB, free: 20.19 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.342e-05/0.6889, allocations: 68.72 kB / 0.5915 GB, free: 20.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00276/0.6916, allocations: 1.755 MB / 0.5932 GB, free: 18.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.423e-05/0.6918, allocations: 49.7 kB / 0.5932 GB, free: 18.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006139/0.6924, allocations: 1.268 MB / 0.5945 GB, free: 17.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002752/0.6927, allocations: 449.5 kB / 0.5949 GB, free: 16.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.802e-05/0.6928, allocations: 32 kB / 0.5949 GB, free: 16.54 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.352e-05/0.6929, allocations: 377.9 kB / 0.5953 GB, free: 16.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001102/0.694, allocations: 0.7925 MB / 0.5961 GB, free: 15.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001216/0.6952, allocations: 1.318 MB / 0.5973 GB, free: 13.83 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002444/0.6976, allocations: 2.273 MB / 0.5996 GB, free: 11.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.33e-05/0.6977, allocations: 12 kB / 0.5996 GB, free: 11.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=211) (initialization): time 0.003656/0.7013, allocations: 2.529 MB / 0.602 GB, free: 8.773 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.7014, allocations: 15.94 kB / 0.6021 GB, free: 8.758 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.356e-05/0.7014, allocations: 16 kB / 0.6021 GB, free: 8.742 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005567/0.702, allocations: 243.5 kB / 0.6023 GB, free: 8.492 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001454/0.7034, allocations: 443.2 kB / 0.6027 GB, free: 8.059 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001821/0.7053, allocations: 2.998 MB / 0.6057 GB, free: 4.785 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001413/0.7067, allocations: 139.6 kB / 0.6058 GB, free: 4.648 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001353/0.7068, allocations: 72 kB / 0.6059 GB, free: 4.578 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.001461/0.7083, allocations: 0.8252 MB / 0.6067 GB, free: 3.742 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004478/0.7088, allocations: 185.7 kB / 0.6068 GB, free: 3.559 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003349/0.7121, allocations: 2.133 MB / 0.6089 GB, free: 1.406 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.13e-05/0.7122, allocations: 12 kB / 0.6089 GB, free: 1.395 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.7122, allocations: 4 kB / 0.6089 GB, free: 1.391 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.574e-05/0.7122, allocations: 11.91 kB / 0.609 GB, free: 1.379 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01047/0.7227, allocations: 4.882 MB / 0.6137 GB, free: 12.4 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-05/0.7227, allocations: 4 kB / 0.6137 GB, free: 12.39 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00123/0.724, allocations: 287.6 kB / 0.614 GB, free: 12.11 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000567/0.7246, allocations: 207.5 kB / 0.6142 GB, free: 11.9 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001206/0.7247, allocations: 27.94 kB / 0.6142 GB, free: 11.87 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002799/0.7275, allocations: 2.983 MB / 0.6171 GB, free: 8.617 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.7275, allocations: 4 kB / 0.6171 GB, free: 8.613 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005479/0.733, allocations: 3.285 MB / 0.6203 GB, free: 5.273 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001518/0.7346, allocations: 438.6 kB / 0.6208 GB, free: 4.824 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005841/0.7352, allocations: 27.98 kB / 0.6208 GB, free: 4.797 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001431/0.7366, allocations: 91.88 kB / 0.6209 GB, free: 4.707 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002354/0.7369, allocations: 92.88 kB / 0.621 GB, free: 4.617 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001079/0.737, allocations: 36 kB / 0.621 GB, free: 4.582 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002518/0.7395, allocations: 1.196 MB / 0.6222 GB, free: 3.395 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.7396, allocations: 0 / 0.6222 GB, free: 3.395 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002188/0.7417, allocations: 0.5312 MB / 0.6227 GB, free: 2.863 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.0007214/0.7425, allocations: 412 kB / 0.6231 GB, free: 2.457 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003905/0.7464, allocations: 2.418 MB / 0.6254 GB, free: 15.96 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.7464, allocations: 3.984 kB / 0.6254 GB, free: 15.96 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001978/0.7484, allocations: 1.379 MB / 0.6268 GB, free: 14.52 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003175/0.7516, allocations: 469.5 kB / 0.6272 GB, free: 14.06 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008922/0.7605, allocations: 5.877 MB / 0.633 GB, free: 8.121 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002436/0.763, allocations: 2.022 MB / 0.635 GB, free: 6.066 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002114/0.7652, allocations: 0.516 MB / 0.6355 GB, free: 5.547 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006199/0.7658, allocations: 147.4 kB / 0.6356 GB, free: 5.402 MB / 410.7 MB Notification: Performance of SimCode: time 2.605e-06/0.7658, allocations: 0 / 0.6356 GB, free: 5.402 MB / 410.7 MB Notification: Performance of Templates: time 0.05271/0.8185, allocations: 27.61 MB / 0.6626 GB, free: 9.988 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches