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.0009567/0.0009565, allocations: 202.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.269/1.269, allocations: 225.6 MB / 234.8 MB, free: 3.203 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008456/0.0008457, allocations: 99.98 kB / 286.7 MB, free: 5.293 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.554e-05/1.557e-05, allocations: 0 / 343.7 MB, free: 8.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09546/0.09549, allocations: 51.48 MB / 395.2 MB, free: 4.715 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3257/0.4213, allocations: 110.3 MB / 0.4937 GB, free: 15.18 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002077/0.4215, allocations: 85.64 kB / 0.4937 GB, free: 15.14 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1415/0.563, allocations: 52.58 MB / 0.5451 GB, free: 15.29 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.5631, allocations: 0 / 0.5451 GB, free: 15.29 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002503/0.5633, allocations: 75.88 kB / 0.5452 GB, free: 15.22 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.006293/0.5696, allocations: 2.604 MB / 0.5477 GB, free: 12.56 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.5697, allocations: 8.031 kB / 0.5477 GB, free: 12.55 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001555/0.5712, allocations: 356.1 kB / 0.548 GB, free: 12.2 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004547/0.5758, allocations: 1.912 MB / 0.5499 GB, free: 10.23 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001282/0.576, allocations: 84.33 kB / 0.55 GB, free: 10.15 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006427/0.5766, allocations: 152 kB / 0.5501 GB, free: 10 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004703/0.5813, allocations: 2.357 MB / 0.5524 GB, free: 7.637 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006029/0.5874, allocations: 2.817 MB / 0.5552 GB, free: 4.676 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.777e-05/0.5875, allocations: 7.906 kB / 0.5552 GB, free: 4.668 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000274/0.5877, allocations: 7.984 kB / 0.5552 GB, free: 4.66 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001271/0.5879, allocations: 112.9 kB / 0.5553 GB, free: 4.547 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01558/0.6035, allocations: 9.981 MB / 0.5651 GB, free: 10.24 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001788/0.6053, allocations: 1.408 MB / 0.5664 GB, free: 8.766 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001027/0.6063, allocations: 0.7349 MB / 0.5671 GB, free: 8.031 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003282/0.6067, allocations: 223.4 kB / 0.5674 GB, free: 7.773 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.393e-05/0.6067, allocations: 39.88 kB / 0.5674 GB, free: 7.727 MB / 442.7 MB Notification: Performance of pre-optimization done (n=108): time 2.915e-06/0.6067, allocations: 0 / 0.5674 GB, free: 7.727 MB / 442.7 MB Notification: Performance of matching and sorting (n=138): time 0.01024/0.617, allocations: 5.179 MB / 0.5725 GB, free: 2.496 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.068e-05/0.6171, allocations: 64.72 kB / 0.5725 GB, free: 2.422 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002563/0.6196, allocations: 1.297 MB / 0.5738 GB, free: 1.121 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.521e-05/0.6197, allocations: 25.7 kB / 0.5738 GB, free: 1.09 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2333/0.8531, allocations: 1.268 MB / 0.575 GB, free: 87.98 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005529/0.8537, allocations: 456.2 kB / 0.5755 GB, free: 87.95 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001022/0.8538, allocations: 0.5 kB / 0.5755 GB, free: 87.95 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.8539, allocations: 375.7 kB / 0.5758 GB, free: 87.64 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00115/0.8551, allocations: 0.7668 MB / 0.5766 GB, free: 87.64 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001012/0.8561, allocations: 1.261 MB / 0.5778 GB, free: 87.06 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001175/0.8573, allocations: 0.9889 MB / 0.5788 GB, free: 87.05 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.428e-06/0.8573, allocations: 4.219 kB / 0.5788 GB, free: 87.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.003441/0.8607, allocations: 2.34 MB / 0.5811 GB, free: 86.88 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.553e-05/0.8608, allocations: 14.58 kB / 0.5811 GB, free: 86.88 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/0.8608, allocations: 18.31 kB / 0.5811 GB, free: 86.88 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005369/0.8613, allocations: 243.4 kB / 0.5813 GB, free: 86.85 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001485/0.8628, allocations: 448.9 kB / 0.5818 GB, free: 86.85 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001681/0.8645, allocations: 2.89 MB / 0.5846 GB, free: 84.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001323/0.8659, allocations: 95.77 kB / 0.5847 GB, free: 84.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001265/0.866, allocations: 77.86 kB / 0.5848 GB, free: 84.46 MB / 442.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 (212): * Single equations (assignments): 208 * 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.0002521/0.8663, allocations: 156.6 kB / 0.5849 GB, free: 84.36 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002279/0.8665, allocations: 181.6 kB / 0.5851 GB, free: 84.26 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002792/0.8693, allocations: 2.028 MB / 0.5871 GB, free: 84.13 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.8693, allocations: 14.27 kB / 0.5871 GB, free: 84.13 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.8693, allocations: 3.188 kB / 0.5871 GB, free: 84.13 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.199e-05/0.8694, allocations: 8.422 kB / 0.5871 GB, free: 84.13 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006039/0.8754, allocations: 4.509 MB / 0.5915 GB, free: 83.65 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.8754, allocations: 2.969 kB / 0.5915 GB, free: 83.65 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001124/0.8766, allocations: 300.2 kB / 0.5918 GB, free: 83.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004548/0.877, allocations: 204 kB / 0.592 GB, free: 83.62 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.248e-05/0.8771, allocations: 9.938 kB / 0.592 GB, free: 83.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001682/0.8788, allocations: 2.86 MB / 0.5948 GB, free: 81.23 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.8788, allocations: 2.812 kB / 0.5948 GB, free: 81.23 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003727/0.8826, allocations: 3.35 MB / 0.598 GB, free: 80.66 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000876/0.8834, allocations: 432.7 kB / 0.5985 GB, free: 80.47 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000213/0.8837, allocations: 6.328 kB / 0.5985 GB, free: 80.47 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009092/0.8846, allocations: 81.66 kB / 0.5985 GB, free: 80.47 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001626/0.8848, allocations: 94.72 kB / 0.5986 GB, free: 80.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.001e-05/0.8849, allocations: 40.94 kB / 0.5987 GB, free: 80.46 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001486/0.8863, allocations: 0.9679 MB / 0.5996 GB, free: 80.36 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8864, allocations: 0 / 0.5996 GB, free: 80.36 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001645/0.888, allocations: 461 kB / 0.6001 GB, free: 80.36 MB / 442.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 (134): * Single equations (assignments): 130 * 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.0006456/0.8887, allocations: 383.8 kB / 0.6004 GB, free: 80.27 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003181/0.8919, allocations: 2.319 MB / 0.6027 GB, free: 79.85 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.8919, allocations: 0 / 0.6027 GB, free: 79.85 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001418/0.8933, allocations: 1.355 MB / 0.604 GB, free: 79.44 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001898/0.8952, allocations: 386.2 kB / 0.6044 GB, free: 79.43 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005832/0.9011, allocations: 3.899 MB / 0.6082 GB, free: 78.52 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001533/0.9026, allocations: 2.072 MB / 0.6102 GB, free: 77.77 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001551/0.9042, allocations: 0.5235 MB / 0.6107 GB, free: 77.73 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004228/0.9046, allocations: 131.5 kB / 0.6108 GB, free: 77.73 MB / 442.7 MB Notification: Performance of SimCode: time 6.51e-07/0.9046, allocations: 0 / 0.6108 GB, free: 77.73 MB / 442.7 MB Notification: Performance of Templates: time 0.04204/0.9467, allocations: 21.81 MB / 0.6321 GB, free: 76.57 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/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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches