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.001251/0.001251, allocations: 198.3 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.214/1.214, allocations: 227.2 MB / 245 MB, free: 5.762 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008406/0.0008405, allocations: 108.9 kB / 297.3 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002119/0.0002119, allocations: 12 kB / 357.9 MB, free: 9.301 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1944/0.1947, allocations: 51.48 MB / 409.4 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2682/0.4629, allocations: 115.3 MB / 0.5125 GB, free: 98.36 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000232/0.4632, allocations: 94.92 kB / 0.5126 GB, free: 98.36 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1338/0.597, allocations: 60.2 MB / 0.5713 GB, free: 39.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.5971, allocations: 3.938 kB / 0.5714 GB, free: 39.97 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002257/0.5973, allocations: 87.88 kB / 0.5714 GB, free: 39.89 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: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.006762/0.6041, allocations: 3.372 MB / 0.5747 GB, free: 36.45 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.125e-05/0.6041, allocations: 12.03 kB / 0.5747 GB, free: 36.43 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00124/0.6053, allocations: 419.4 kB / 0.5751 GB, free: 36.02 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004368/0.6097, allocations: 2.243 MB / 0.5773 GB, free: 33.72 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001265/0.6099, allocations: 222.2 kB / 0.5775 GB, free: 33.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004803/0.6104, allocations: 295.9 kB / 0.5778 GB, free: 33.21 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004751/0.6151, allocations: 3.802 MB / 0.5815 GB, free: 29.26 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.089e-05/0.6152, allocations: 7.984 kB / 0.5815 GB, free: 29.25 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002371/0.6154, allocations: 131.9 kB / 0.5817 GB, free: 29.12 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.485e-05/0.6155, allocations: 145.7 kB / 0.5818 GB, free: 28.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003938/0.6195, allocations: 3.083 MB / 0.5848 GB, free: 25.89 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01375/0.6332, allocations: 12.2 MB / 0.5967 GB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002005/0.6353, allocations: 2.104 MB / 0.5988 GB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002562/0.6355, allocations: 223.4 kB / 0.599 GB, free: 10.86 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.258e-05/0.6356, allocations: 47.88 kB / 0.599 GB, free: 10.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=141): time 3.247e-06/0.6356, allocations: 0 / 0.599 GB, free: 10.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=162): time 0.01194/0.6475, allocations: 7.861 MB / 0.6067 GB, free: 2.84 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.81e-05/0.6476, allocations: 68.72 kB / 0.6068 GB, free: 2.762 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001918/0.6495, allocations: 1.76 MB / 0.6085 GB, free: 0.9688 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.954e-05/0.6496, allocations: 61.64 kB / 0.6086 GB, free: 0.9023 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007356/0.6503, allocations: 1.448 MB / 0.61 GB, free: 15.44 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004051/0.6507, allocations: 0.5585 MB / 0.6105 GB, free: 14.87 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.767e-05/0.6509, allocations: 36 kB / 0.6106 GB, free: 14.84 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001891/0.651, allocations: 381.9 kB / 0.6109 GB, free: 14.46 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001322/0.6524, allocations: 0.9409 MB / 0.6118 GB, free: 13.52 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001657/0.654, allocations: 1.487 MB / 0.6133 GB, free: 11.79 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001663/0.6557, allocations: 1.197 MB / 0.6145 GB, free: 10.59 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.664e-06/0.6557, allocations: 4 kB / 0.6145 GB, free: 10.59 MB / 394.7 MB Notification: Performance of matching and sorting (n=251) (initialization): time 0.004876/0.6606, allocations: 3.203 MB / 0.6176 GB, free: 7.367 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.444e-05/0.6607, allocations: 12 kB / 0.6176 GB, free: 7.355 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.825e-05/0.6607, allocations: 23.98 kB / 0.6176 GB, free: 7.332 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00128/0.662, allocations: 0.5414 MB / 0.6182 GB, free: 6.781 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001639/0.6636, allocations: 483.2 kB / 0.6186 GB, free: 6.309 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007205/0.6708, allocations: 6.483 MB / 0.625 GB, free: 15.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00183/0.6727, allocations: 143.8 kB / 0.6251 GB, free: 15.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001704/0.6729, allocations: 91.98 kB / 0.6252 GB, free: 15.32 MB / 410.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (225): * Single equations (assignments): 222 * 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.00176/0.6746, allocations: 0.9346 MB / 0.6261 GB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003765/0.675, allocations: 217.3 kB / 0.6263 GB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004694/0.6797, allocations: 2.854 MB / 0.6291 GB, free: 11.29 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.489e-05/0.6798, allocations: 16 kB / 0.6291 GB, free: 11.27 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/0.6798, allocations: 4 kB / 0.6291 GB, free: 11.27 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.418e-05/0.6798, allocations: 15.91 kB / 0.6291 GB, free: 11.25 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009737/0.6895, allocations: 6.017 MB / 0.635 GB, free: 5.129 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/0.6896, allocations: 4 kB / 0.635 GB, free: 5.125 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001195/0.6908, allocations: 279.6 kB / 0.6353 GB, free: 4.852 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001481/0.6923, allocations: 0.5921 MB / 0.6358 GB, free: 4.25 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001113/0.6924, allocations: 39.92 kB / 0.6359 GB, free: 4.211 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008623/0.701, allocations: 8.216 MB / 0.6439 GB, free: 11.59 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.701, allocations: 0 / 0.6439 GB, free: 11.59 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006663/0.7077, allocations: 4.299 MB / 0.6481 GB, free: 7.168 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00128/0.709, allocations: 0.4982 MB / 0.6486 GB, free: 6.648 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004458/0.7095, allocations: 44.36 kB / 0.6486 GB, free: 6.605 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001194/0.7107, allocations: 99.88 kB / 0.6487 GB, free: 6.508 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000236/0.7109, allocations: 121.1 kB / 0.6488 GB, free: 6.391 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001138/0.7111, allocations: 47.98 kB / 0.6489 GB, free: 6.344 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00198/0.713, allocations: 1.359 MB / 0.6502 GB, free: 4.965 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7131, allocations: 3.938 kB / 0.6502 GB, free: 4.961 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002074/0.7151, allocations: 0.637 MB / 0.6508 GB, free: 4.324 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (139): * Single equations (assignments): 136 * 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.0006009/0.7157, allocations: 430.6 kB / 0.6513 GB, free: 3.898 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004165/0.7199, allocations: 2.774 MB / 0.654 GB, free: 1.074 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.7199, allocations: 0 / 0.654 GB, free: 1.074 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002295/0.7222, allocations: 1.651 MB / 0.6556 GB, free: 15.39 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002116/0.7244, allocations: 0.5003 MB / 0.6561 GB, free: 14.89 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009067/0.7334, allocations: 7.073 MB / 0.663 GB, free: 7.766 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001942/0.7354, allocations: 2.326 MB / 0.6652 GB, free: 5.41 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001604/0.737, allocations: 0.5222 MB / 0.6658 GB, free: 4.883 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000466/0.7375, allocations: 163.4 kB / 0.6659 GB, free: 4.723 MB / 442.7 MB Notification: Performance of SimCode: time 7.51e-07/0.7375, allocations: 0 / 0.6659 GB, free: 4.723 MB / 442.7 MB Notification: Performance of Templates: time 0.2133/0.9508, allocations: 33.98 MB / 0.6991 GB, free: 101.1 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