Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.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_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001676/0.001676, allocations: 202.1 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.554/1.554, allocations: 225.6 MB / 234.8 MB, free: 3.293 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000848/0.000848, allocations: 97.67 kB / 286.7 MB, free: 5.238 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.496e-05/1.511e-05, allocations: 4 kB / 343.7 MB, free: 8.297 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09458/0.09461, allocations: 51.47 MB / 395.2 MB, free: 4.785 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3138/0.4084, allocations: 114.6 MB / 0.4978 GB, free: 11.03 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002582/0.4087, allocations: 84.39 kB / 0.4979 GB, free: 10.99 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1545/0.5633, allocations: 59.5 MB / 0.556 GB, free: 4.113 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.5633, allocations: 0 / 0.556 GB, free: 4.113 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001987/0.5635, allocations: 83.88 kB / 0.5561 GB, free: 4.031 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: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.005538/0.5691, allocations: 2.994 MB / 0.559 GB, free: 0.9727 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.5691, allocations: 12.03 kB / 0.559 GB, free: 0.9609 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001142/0.5702, allocations: 423.4 kB / 0.5594 GB, free: 0.543 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004008/0.5743, allocations: 2.22 MB / 0.5616 GB, free: 14.27 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.501e-05/0.5744, allocations: 96.34 kB / 0.5617 GB, free: 14.18 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003599/0.5748, allocations: 183.9 kB / 0.5619 GB, free: 14 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004495/0.5793, allocations: 2.796 MB / 0.5646 GB, free: 11.2 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005191/0.5845, allocations: 3.313 MB / 0.5678 GB, free: 7.734 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.777e-05/0.5845, allocations: 7.906 kB / 0.5678 GB, free: 7.727 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002244/0.5848, allocations: 4 kB / 0.5679 GB, free: 7.723 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001319/0.5849, allocations: 145.6 kB / 0.568 GB, free: 7.578 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.24/0.8249, allocations: 11.63 MB / 0.5793 GB, free: 79.4 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00209/0.827, allocations: 2.087 MB / 0.5814 GB, free: 78.8 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001127/0.8282, allocations: 0.9716 MB / 0.5823 GB, free: 78.79 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002985/0.8285, allocations: 226.8 kB / 0.5826 GB, free: 78.61 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.8285, allocations: 53.78 kB / 0.5826 GB, free: 78.57 MB / 442.7 MB Notification: Performance of pre-optimization done (n=149): time 3.877e-06/0.8285, allocations: 0 / 0.5826 GB, free: 78.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=171): time 0.008864/0.8374, allocations: 5.887 MB / 0.5884 GB, free: 77.81 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.469e-05/0.8375, allocations: 69.56 kB / 0.5884 GB, free: 77.75 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001872/0.8393, allocations: 1.493 MB / 0.5899 GB, free: 77.54 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001036/0.8394, allocations: 25.7 kB / 0.5899 GB, free: 77.51 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006832/0.8401, allocations: 1.449 MB / 0.5913 GB, free: 77.02 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003081/0.8405, allocations: 0.561 MB / 0.5919 GB, free: 76.7 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.564e-05/0.8406, allocations: 6.781 kB / 0.5919 GB, free: 76.7 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.223e-05/0.8407, allocations: 388.7 kB / 0.5922 GB, free: 76.39 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00102/0.8417, allocations: 0.8907 MB / 0.5931 GB, free: 76.38 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001214/0.8429, allocations: 1.423 MB / 0.5945 GB, free: 75.75 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001334/0.8442, allocations: 1.149 MB / 0.5956 GB, free: 75.73 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.758e-06/0.8443, allocations: 6.219 kB / 0.5956 GB, free: 75.73 MB / 442.7 MB Notification: Performance of matching and sorting (n=260) (initialization): time 0.004134/0.8484, allocations: 2.981 MB / 0.5985 GB, free: 75.51 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.678e-05/0.8484, allocations: 13.22 kB / 0.5986 GB, free: 75.51 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.664e-05/0.8485, allocations: 23.77 kB / 0.5986 GB, free: 75.51 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001186/0.8497, allocations: 0.5322 MB / 0.5991 GB, free: 75.48 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001572/0.8513, allocations: 490.6 kB / 0.5996 GB, free: 75.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005526/0.8568, allocations: 6.025 MB / 0.6054 GB, free: 72.96 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001747/0.8586, allocations: 106.4 kB / 0.6055 GB, free: 72.95 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001573/0.8587, allocations: 92.17 kB / 0.6056 GB, free: 72.95 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (234): * Single equations (assignments): 231 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * 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: 2 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002945/0.859, allocations: 162.3 kB / 0.6058 GB, free: 72.84 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000291/0.8593, allocations: 207 kB / 0.606 GB, free: 72.73 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00401/0.8633, allocations: 2.703 MB / 0.6086 GB, free: 72.57 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.177e-05/0.8634, allocations: 16.09 kB / 0.6086 GB, free: 72.57 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/0.8634, allocations: 7.969 kB / 0.6086 GB, free: 72.57 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.6e-05/0.8634, allocations: 9.812 kB / 0.6087 GB, free: 72.57 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009766/0.8732, allocations: 5.603 MB / 0.6141 GB, free: 71.89 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/0.8732, allocations: 2.781 kB / 0.6141 GB, free: 71.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001226/0.8745, allocations: 313.1 kB / 0.6144 GB, free: 71.88 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001439/0.8759, allocations: 0.5777 MB / 0.615 GB, free: 71.72 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001089/0.876, allocations: 16.75 kB / 0.615 GB, free: 71.72 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007087/0.8831, allocations: 7.68 MB / 0.6225 GB, free: 66.43 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/0.8832, allocations: 7.156 kB / 0.6225 GB, free: 66.43 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0059/0.8891, allocations: 4.252 MB / 0.6267 GB, free: 64.44 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001114/0.8902, allocations: 497.9 kB / 0.6271 GB, free: 64.14 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002943/0.8905, allocations: 13.45 kB / 0.6272 GB, free: 64.13 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001087/0.8916, allocations: 86.53 kB / 0.6272 GB, free: 64.13 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000247/0.8919, allocations: 122.2 kB / 0.6274 GB, free: 64.12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001163/0.892, allocations: 52.94 kB / 0.6274 GB, free: 64.11 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001601/0.8936, allocations: 1.12 MB / 0.6285 GB, free: 63.62 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8936, allocations: 0 / 0.6285 GB, free: 63.62 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002144/0.8958, allocations: 0.5523 MB / 0.629 GB, free: 63.61 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (145): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,76.0%) 20,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005983/0.8964, allocations: 402.5 kB / 0.6294 GB, free: 63.48 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003792/0.9002, allocations: 2.643 MB / 0.632 GB, free: 62.38 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.45e-06/0.9002, allocations: 0 / 0.632 GB, free: 62.38 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002087/0.9023, allocations: 1.626 MB / 0.6336 GB, free: 61.63 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002373/0.9047, allocations: 426.9 kB / 0.634 GB, free: 61.53 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00771/0.9124, allocations: 4.769 MB / 0.6387 GB, free: 59.61 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002202/0.9147, allocations: 2.332 MB / 0.6409 GB, free: 58.59 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002069/0.9168, allocations: 0.5419 MB / 0.6415 GB, free: 58.55 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004927/0.9173, allocations: 155.4 kB / 0.6416 GB, free: 58.54 MB / 442.7 MB Notification: Performance of SimCode: time 7.11e-07/0.9173, allocations: 2.812 kB / 0.6416 GB, free: 58.54 MB / 442.7 MB Notification: Performance of Templates: time 0.04237/0.9597, allocations: 27.86 MB / 0.6688 GB, free: 57 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches