Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.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_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000978/0.000978, allocations: 198.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.298/1.298, 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.0007598/0.0007599, allocations: 100.5 kB / 286.7 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.575e-05/1.578e-05, allocations: 4 kB / 343.7 MB, free: 8.309 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08603/0.08606, allocations: 51.47 MB / 395.2 MB, free: 4.793 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.304/0.3901, allocations: 109.1 MB / 0.4925 GB, free: 464 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002311/0.3904, allocations: 88.11 kB / 0.4926 GB, free: 420 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1257/0.5161, allocations: 49.56 MB / 0.541 GB, free: 3.562 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.5162, allocations: 4 kB / 0.541 GB, free: 3.559 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001384/0.5163, allocations: 59.94 kB / 0.541 GB, free: 3.5 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.004049/0.5204, allocations: 2.365 MB / 0.5434 GB, free: 1.078 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.5204, allocations: 11.97 kB / 0.5434 GB, free: 1.066 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008166/0.5212, allocations: 328.5 kB / 0.5437 GB, free: 0.7422 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00277/0.524, allocations: 1.695 MB / 0.5453 GB, free: 14.99 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.318e-05/0.5241, allocations: 79.98 kB / 0.5454 GB, free: 14.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002675/0.5244, allocations: 135.9 kB / 0.5455 GB, free: 14.78 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00322/0.5276, allocations: 2.075 MB / 0.5476 GB, free: 12.7 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00375/0.5314, allocations: 2.5 MB / 0.55 GB, free: 10.05 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.198e-05/0.5314, allocations: 3.984 kB / 0.55 GB, free: 10.05 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001669/0.5316, allocations: 4 kB / 0.55 GB, free: 10.05 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.876e-05/0.5317, allocations: 100.4 kB / 0.5501 GB, free: 9.945 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01258/0.5443, allocations: 8.702 MB / 0.5586 GB, free: 0.9922 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001973/0.5463, allocations: 1.676 MB / 0.5603 GB, free: 15.19 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001053/0.5474, allocations: 0.7719 MB / 0.561 GB, free: 14.43 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003328/0.5477, allocations: 227.3 kB / 0.5612 GB, free: 14.17 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/0.5478, allocations: 47.88 kB / 0.5613 GB, free: 14.12 MB / 442.7 MB Notification: Performance of pre-optimization done (n=110): time 3.276e-06/0.5478, allocations: 0 / 0.5613 GB, free: 14.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=134): time 0.009167/0.557, allocations: 4.936 MB / 0.5661 GB, free: 9.141 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.097e-05/0.557, allocations: 68.72 kB / 0.5662 GB, free: 9.062 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001624/0.5587, allocations: 1.113 MB / 0.5672 GB, free: 7.941 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.289e-05/0.5587, allocations: 29.7 kB / 0.5673 GB, free: 7.906 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006931/0.5594, allocations: 1.103 MB / 0.5683 GB, free: 6.789 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003153/0.5598, allocations: 445.3 kB / 0.5688 GB, free: 6.348 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.453e-05/0.5599, allocations: 0 / 0.5688 GB, free: 6.348 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.56, allocations: 369.8 kB / 0.5691 GB, free: 5.98 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009387/0.561, allocations: 0.699 MB / 0.5698 GB, free: 5.281 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001283/0.5622, allocations: 1.102 MB / 0.5709 GB, free: 4.008 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00125/0.5635, allocations: 0.8807 MB / 0.5717 GB, free: 3.129 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.179e-05/0.5635, allocations: 7.953 kB / 0.5717 GB, free: 3.121 MB / 442.7 MB Notification: Performance of matching and sorting (n=202) (initialization): time 0.003881/0.5674, allocations: 2.454 MB / 0.5741 GB, free: 0.6484 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.397e-05/0.5674, allocations: 8 kB / 0.5742 GB, free: 0.6406 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/0.5675, allocations: 16 kB / 0.5742 GB, free: 0.625 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001347/0.5688, allocations: 0.5817 MB / 0.5747 GB, free: 36 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.2091/0.7779, allocations: 358.3 kB / 0.5751 GB, free: 91.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006805/0.7847, allocations: 6.404 MB / 0.5813 GB, free: 88.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001559/0.7863, allocations: 82.84 kB / 0.5814 GB, free: 88.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001535/0.7865, allocations: 72.28 kB / 0.5815 GB, free: 88.8 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (172): * Single equations (assignments): 169 * 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 {(6,72.2%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002676/0.7868, allocations: 147.3 kB / 0.5816 GB, free: 88.69 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002441/0.787, allocations: 159.4 kB / 0.5818 GB, free: 88.69 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003433/0.7905, allocations: 2.232 MB / 0.584 GB, free: 88.58 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.534e-05/0.7905, allocations: 17.78 kB / 0.584 GB, free: 88.58 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.966e-06/0.7905, allocations: 3.188 kB / 0.584 GB, free: 88.58 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.501e-05/0.7905, allocations: 10.42 kB / 0.584 GB, free: 88.58 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007084/0.7976, allocations: 4.552 MB / 0.5884 GB, free: 88.09 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/0.7977, allocations: 3.406 kB / 0.5884 GB, free: 88.09 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008941/0.7986, allocations: 224.5 kB / 0.5886 GB, free: 88.09 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001462/0.8, allocations: 0.6316 MB / 0.5893 GB, free: 88.06 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001046/0.8002, allocations: 21.66 kB / 0.5893 GB, free: 88.06 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007395/0.8076, allocations: 8.076 MB / 0.5972 GB, free: 84.41 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.135e-06/0.8076, allocations: 7.344 kB / 0.5972 GB, free: 84.41 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004746/0.8124, allocations: 3.469 MB / 0.6006 GB, free: 83.77 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001042/0.8134, allocations: 403.1 kB / 0.6009 GB, free: 83.59 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002064/0.8137, allocations: 13.45 kB / 0.601 GB, free: 83.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000884/0.8145, allocations: 73.98 kB / 0.601 GB, free: 83.59 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002581/0.8148, allocations: 111.1 kB / 0.6011 GB, free: 83.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.5e-05/0.8149, allocations: 43.34 kB / 0.6012 GB, free: 83.59 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001201/0.8161, allocations: 0.8286 MB / 0.602 GB, free: 83.48 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.303e-06/0.8161, allocations: 3.094 kB / 0.602 GB, free: 83.48 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001803/0.8179, allocations: 490.4 kB / 0.6025 GB, free: 83.48 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],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 102 * 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 {(6,72.2%) 23,(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.0006072/0.8186, allocations: 344.2 kB / 0.6028 GB, free: 83.39 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0032/0.8218, allocations: 2.232 MB / 0.605 GB, free: 83.03 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.8218, allocations: 0.75 kB / 0.605 GB, free: 83.03 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002007/0.8238, allocations: 1.458 MB / 0.6064 GB, free: 82.67 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001824/0.8256, allocations: 353.6 kB / 0.6067 GB, free: 82.66 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005794/0.8314, allocations: 3.795 MB / 0.6104 GB, free: 81.68 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001718/0.8332, allocations: 1.931 MB / 0.6123 GB, free: 80.77 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001329/0.8345, allocations: 377.9 kB / 0.6127 GB, free: 80.72 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003396/0.8349, allocations: 114.2 kB / 0.6128 GB, free: 80.72 MB / 442.7 MB Notification: Performance of SimCode: time 7.41e-07/0.8349, allocations: 0 / 0.6128 GB, free: 80.72 MB / 442.7 MB Notification: Performance of Templates: time 0.04535/0.8802, allocations: 23.83 MB / 0.6361 GB, free: 79.45 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches