Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00135/0.00135, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.393/1.393, allocations: 221.5 MB / 230.3 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000872/0.000872, allocations: 106.3 kB / 281.2 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.502e-05/1.503e-05, allocations: 0 / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08864/0.08867, allocations: 50.42 MB / 387.5 MB, free: 7.562 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3118/0.4005, allocations: 108.3 MB / 495.8 MB, free: 2.445 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002143/0.4008, allocations: 85.55 kB / 495.9 MB, free: 2.363 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1304/0.5312, allocations: 49.46 MB / 0.5326 GB, free: 0.5977 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.5312, allocations: 0 / 0.5326 GB, free: 0.5977 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001453/0.5314, allocations: 63.94 kB / 0.5326 GB, free: 0.5352 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.004346/0.5357, allocations: 2.37 MB / 0.5349 GB, free: 14.11 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.5358, allocations: 8.031 kB / 0.5349 GB, free: 14.1 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008286/0.5366, allocations: 316.5 kB / 0.5352 GB, free: 13.79 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002969/0.5396, allocations: 1.695 MB / 0.5369 GB, free: 12.04 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.354e-05/0.5397, allocations: 72 kB / 0.537 GB, free: 11.96 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000279/0.54, allocations: 132 kB / 0.5371 GB, free: 11.84 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003615/0.5436, allocations: 2.071 MB / 0.5391 GB, free: 9.758 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004124/0.5477, allocations: 2.496 MB / 0.5416 GB, free: 7.121 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.891e-05/0.5478, allocations: 11.91 kB / 0.5416 GB, free: 7.109 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001739/0.548, allocations: 4 kB / 0.5416 GB, free: 7.105 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001074/0.5481, allocations: 104.4 kB / 0.5417 GB, free: 7 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2212/0.7693, allocations: 8.693 MB / 0.5502 GB, free: 103.2 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002078/0.7715, allocations: 1.666 MB / 0.5518 GB, free: 102.6 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001113/0.7726, allocations: 0.7728 MB / 0.5525 GB, free: 102.5 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003071/0.7729, allocations: 224.3 kB / 0.5527 GB, free: 102.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.565e-05/0.7729, allocations: 45.06 kB / 0.5528 GB, free: 102.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=110): time 3.376e-06/0.773, allocations: 0 / 0.5528 GB, free: 102.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=134): time 0.009139/0.7821, allocations: 4.94 MB / 0.5576 GB, free: 101.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.6e-05/0.7822, allocations: 70.22 kB / 0.5577 GB, free: 101.6 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001653/0.7838, allocations: 1.11 MB / 0.5588 GB, free: 101.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.512e-05/0.7839, allocations: 29.19 kB / 0.5588 GB, free: 101.4 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006537/0.7846, allocations: 1.102 MB / 0.5599 GB, free: 101.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003131/0.7849, allocations: 452.9 kB / 0.5603 GB, free: 100.8 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.838e-05/0.785, allocations: 0 / 0.5603 GB, free: 100.8 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.972e-05/0.7851, allocations: 372.8 kB / 0.5607 GB, free: 100.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009636/0.7861, allocations: 0.6943 MB / 0.5613 GB, free: 100.5 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001103/0.7872, allocations: 1.098 MB / 0.5624 GB, free: 100.1 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001247/0.7884, allocations: 0.8889 MB / 0.5633 GB, free: 100 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.468e-06/0.7885, allocations: 3.281 kB / 0.5633 GB, free: 100 MB / 426.7 MB Notification: Performance of matching and sorting (n=202) (initialization): time 0.004129/0.7926, allocations: 2.439 MB / 0.5657 GB, free: 99.86 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.646e-05/0.7926, allocations: 14.16 kB / 0.5657 GB, free: 99.86 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.736e-05/0.7927, allocations: 15.72 kB / 0.5657 GB, free: 99.86 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00145/0.7941, allocations: 0.5829 MB / 0.5663 GB, free: 99.83 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001407/0.7955, allocations: 362.3 kB / 0.5666 GB, free: 99.83 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007132/0.8027, allocations: 6.419 MB / 0.5729 GB, free: 97.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001526/0.8043, allocations: 90.89 kB / 0.573 GB, free: 97.26 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001445/0.8044, allocations: 68.52 kB / 0.573 GB, free: 97.26 MB / 426.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.0002979/0.8047, allocations: 149.3 kB / 0.5732 GB, free: 97.16 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003419/0.8051, allocations: 159.2 kB / 0.5733 GB, free: 97.07 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003537/0.8086, allocations: 2.233 MB / 0.5755 GB, free: 96.75 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.167e-05/0.8087, allocations: 11.62 kB / 0.5755 GB, free: 96.75 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.8087, allocations: 7.75 kB / 0.5755 GB, free: 96.75 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.474e-05/0.8087, allocations: 7.359 kB / 0.5755 GB, free: 96.75 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006968/0.8157, allocations: 4.548 MB / 0.58 GB, free: 94.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/0.8157, allocations: 3.875 kB / 0.58 GB, free: 94.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009105/0.8166, allocations: 225.6 kB / 0.5802 GB, free: 94.95 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001454/0.8181, allocations: 0.6391 MB / 0.5808 GB, free: 94.77 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.681e-05/0.8182, allocations: 15.55 kB / 0.5808 GB, free: 94.77 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007309/0.8255, allocations: 8.08 MB / 0.5887 GB, free: 89.29 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.812e-06/0.8256, allocations: 7.219 kB / 0.5887 GB, free: 89.29 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004445/0.83, allocations: 3.455 MB / 0.5921 GB, free: 87.64 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009279/0.831, allocations: 406.9 kB / 0.5925 GB, free: 87.39 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002713/0.8313, allocations: 14.09 kB / 0.5925 GB, free: 87.38 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000936/0.8322, allocations: 76.33 kB / 0.5926 GB, free: 87.38 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002417/0.8325, allocations: 109 kB / 0.5927 GB, free: 87.37 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.505e-05/0.8326, allocations: 45.16 kB / 0.5927 GB, free: 87.36 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001131/0.8337, allocations: 0.8282 MB / 0.5935 GB, free: 87 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.834e-06/0.8337, allocations: 3.375 kB / 0.5935 GB, free: 87 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001972/0.8357, allocations: 486.1 kB / 0.594 GB, free: 86.98 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],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.0005177/0.8362, allocations: 342.9 kB / 0.5943 GB, free: 86.88 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003297/0.8395, allocations: 2.236 MB / 0.5965 GB, free: 85.92 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.483e-06/0.8396, allocations: 7.625 kB / 0.5965 GB, free: 85.92 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002135/0.8417, allocations: 1.448 MB / 0.5979 GB, free: 85.23 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001973/0.8437, allocations: 346.7 kB / 0.5983 GB, free: 85.15 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005419/0.8491, allocations: 3.814 MB / 0.602 GB, free: 83.51 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001198/0.8503, allocations: 1.93 MB / 0.6039 GB, free: 82.58 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001161/0.8515, allocations: 371.4 kB / 0.6042 GB, free: 82.54 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002962/0.8518, allocations: 118.2 kB / 0.6043 GB, free: 82.53 MB / 426.7 MB Notification: Performance of SimCode: time 1.252e-06/0.8518, allocations: 0 / 0.6043 GB, free: 82.53 MB / 426.7 MB Notification: Performance of Templates: time 0.03473/0.8866, allocations: 23.76 MB / 0.6275 GB, free: 74.65 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches