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.001061/0.001061, allocations: 196.6 kB / 18.1 MB, free: 3.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 226.5 MB / 245.4 MB, free: 6.371 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007991/0.0007991, allocations: 98.94 kB / 297.5 MB, free: 6.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002255/0.0002256, allocations: 4 kB / 358.1 MB, free: 10.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1955/0.1958, allocations: 51.29 MB / 409.4 MB, free: 27.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3076/0.5034, allocations: 115.4 MB / 0.5125 GB, free: 98.97 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002802/0.5038, allocations: 86.75 kB / 0.5126 GB, free: 98.97 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1354/0.6392, allocations: 60.15 MB / 0.5713 GB, free: 41.6 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.6392, allocations: 0 / 0.5713 GB, free: 41.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001965/0.6394, allocations: 91.86 kB / 0.5714 GB, free: 41.51 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.00578/0.6452, allocations: 3.331 MB / 0.5746 GB, free: 38.1 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.793e-05/0.6453, allocations: 12.02 kB / 0.5747 GB, free: 38.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001069/0.6463, allocations: 424.3 kB / 0.5751 GB, free: 37.67 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003568/0.6499, allocations: 2.309 MB / 0.5773 GB, free: 35.31 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000108/0.65, allocations: 222.3 kB / 0.5775 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003434/0.6504, allocations: 296.3 kB / 0.5778 GB, free: 34.8 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004766/0.6552, allocations: 3.825 MB / 0.5815 GB, free: 30.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.28e-05/0.6553, allocations: 8.094 kB / 0.5816 GB, free: 30.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002403/0.6555, allocations: 131.9 kB / 0.5817 GB, free: 30.69 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001001/0.6556, allocations: 145.6 kB / 0.5818 GB, free: 30.54 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004624/0.6602, allocations: 3.087 MB / 0.5848 GB, free: 27.45 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01636/0.6766, allocations: 12.21 MB / 0.5968 GB, free: 14.88 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002201/0.6789, allocations: 2.098 MB / 0.5988 GB, free: 12.67 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001226/0.6801, allocations: 1.025 MB / 0.5998 GB, free: 11.64 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003091/0.6804, allocations: 223.5 kB / 0.6 GB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.655e-05/0.6805, allocations: 43.88 kB / 0.6001 GB, free: 11.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=141): time 4.699e-06/0.6805, allocations: 0 / 0.6001 GB, free: 11.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=163): time 0.01295/0.6934, allocations: 7.93 MB / 0.6078 GB, free: 3.289 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.222e-05/0.6935, allocations: 72.66 kB / 0.6079 GB, free: 3.203 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002507/0.696, allocations: 1.997 MB / 0.6098 GB, free: 1.168 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001179/0.6961, allocations: 49.7 kB / 0.6099 GB, free: 1.113 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008257/0.697, allocations: 1.444 MB / 0.6113 GB, free: 15.65 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004413/0.6974, allocations: 0.5545 MB / 0.6118 GB, free: 15.09 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.983e-05/0.6975, allocations: 44 kB / 0.6119 GB, free: 15.05 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001912/0.6977, allocations: 381.9 kB / 0.6122 GB, free: 14.67 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00149/0.6992, allocations: 0.9331 MB / 0.6131 GB, free: 13.73 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001876/0.7011, allocations: 1.487 MB / 0.6146 GB, free: 12.01 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003792/0.7049, allocations: 2.631 MB / 0.6172 GB, free: 9.141 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-05/0.7049, allocations: 4 kB / 0.6172 GB, free: 9.137 MB / 394.7 MB Notification: Performance of matching and sorting (n=252) (initialization): time 0.005462/0.7104, allocations: 3.203 MB / 0.6203 GB, free: 5.914 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.354e-05/0.7105, allocations: 12 kB / 0.6203 GB, free: 5.902 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.528e-05/0.7105, allocations: 16 kB / 0.6203 GB, free: 5.887 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00135/0.7119, allocations: 0.5493 MB / 0.6209 GB, free: 5.328 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001643/0.7135, allocations: 471.2 kB / 0.6213 GB, free: 4.867 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007578/0.7211, allocations: 6.302 MB / 0.6275 GB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002244/0.7234, allocations: 139.8 kB / 0.6276 GB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002141/0.7236, allocations: 83.98 kB / 0.6277 GB, free: 14.08 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 (226): * Single equations (assignments): 223 * 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.002225/0.7258, allocations: 0.9413 MB / 0.6286 GB, free: 13.13 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000573/0.7264, allocations: 217.3 kB / 0.6288 GB, free: 12.91 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004976/0.7314, allocations: 2.846 MB / 0.6316 GB, free: 10.05 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.556e-05/0.7314, allocations: 16 kB / 0.6316 GB, free: 10.04 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.7315, allocations: 4 kB / 0.6316 GB, free: 10.03 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.845e-05/0.7315, allocations: 7.969 kB / 0.6316 GB, free: 10.02 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01013/0.7416, allocations: 6.06 MB / 0.6375 GB, free: 3.844 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/0.7417, allocations: 3.938 kB / 0.6375 GB, free: 3.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001148/0.7428, allocations: 295.5 kB / 0.6378 GB, free: 3.551 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001447/0.7443, allocations: 0.5846 MB / 0.6384 GB, free: 2.957 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001149/0.7444, allocations: 47.98 kB / 0.6384 GB, free: 2.91 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008602/0.753, allocations: 7.981 MB / 0.6462 GB, free: 10.52 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/0.753, allocations: 7.938 kB / 0.6462 GB, free: 10.52 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006538/0.7596, allocations: 4.143 MB / 0.6503 GB, free: 6.312 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001362/0.761, allocations: 0.4943 MB / 0.6508 GB, free: 5.797 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004761/0.7615, allocations: 39.98 kB / 0.6508 GB, free: 5.758 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001337/0.7628, allocations: 103.9 kB / 0.6509 GB, free: 5.656 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003268/0.7632, allocations: 125 kB / 0.651 GB, free: 5.535 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001263/0.7633, allocations: 47.98 kB / 0.6511 GB, free: 5.488 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002598/0.7659, allocations: 1.355 MB / 0.6524 GB, free: 4.113 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.7659, allocations: 0 / 0.6524 GB, free: 4.113 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002391/0.7683, allocations: 0.6525 MB / 0.653 GB, free: 3.461 MB / 426.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * 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.0006805/0.769, allocations: 428 kB / 0.6534 GB, free: 3.039 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004244/0.7732, allocations: 2.77 MB / 0.6561 GB, free: 228 kB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.7733, allocations: 0 / 0.6561 GB, free: 228 kB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002367/0.7756, allocations: 1.655 MB / 0.6578 GB, free: 14.53 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003239/0.7789, allocations: 0.5116 MB / 0.6583 GB, free: 14.02 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01069/0.7896, allocations: 7.097 MB / 0.6652 GB, free: 6.863 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002201/0.7918, allocations: 2.267 MB / 0.6674 GB, free: 4.562 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001888/0.7937, allocations: 0.53 MB / 0.6679 GB, free: 4.027 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004776/0.7942, allocations: 167.3 kB / 0.6681 GB, free: 3.863 MB / 442.7 MB Notification: Performance of SimCode: time 7.72e-07/0.7942, allocations: 4 kB / 0.6681 GB, free: 3.859 MB / 442.7 MB Notification: Performance of Templates: time 0.2588/1.053, allocations: 34.35 MB / 0.7016 GB, free: 102.4 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/jenkins1/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