Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009149/0.000915, allocations: 194.1 kB / 17.05 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 226.6 MB / 244.4 MB, free: 8.301 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007852/0.0007852, allocations: 102.6 kB / 296.4 MB, free: 7.016 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001938/0.0001938, allocations: 8 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2194/0.2197, allocations: 51.3 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.006707/0.2264, allocations: 9.135 MB / 416.6 MB, free: 18.68 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005563/0.232, allocations: 3.263 MB / 419.9 MB, free: 15.42 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001364/0.2334, allocations: 51.75 kB / 420 MB, free: 15.37 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001518/0.2349, allocations: 0.6213 MB / 420.6 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002001/0.237, allocations: 0.7107 MB / 421.3 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007956/0.2378, allocations: 267.6 kB / 421.5 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002472/0.2402, allocations: 2.778 MB / 424.3 MB, free: 10.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001523/0.2418, allocations: 1.591 MB / 425.9 MB, free: 9.355 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001358/0.2431, allocations: 0.9454 MB / 426.9 MB, free: 8.406 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001191/0.2444, allocations: 1.28 MB / 428.1 MB, free: 7.121 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002165/0.2446, allocations: 144 kB / 428.3 MB, free: 6.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005622/0.2452, allocations: 223.9 kB / 428.5 MB, free: 6.762 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004629/0.2456, allocations: 0.7086 MB / 429.2 MB, free: 6.051 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003802/0.246, allocations: 0.5237 MB / 429.7 MB, free: 5.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002042/0.2481, allocations: 3.51 MB / 433.2 MB, free: 2 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.2481, allocations: 0 / 433.2 MB, free: 2 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.196e-06/0.2481, allocations: 0 / 433.2 MB, free: 2 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.63e-05/0.2482, allocations: 7.938 kB / 433.2 MB, free: 1.992 MB / 298.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.004198/0.2524, allocations: 2.621 MB / 435.9 MB, free: 15.31 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.2524, allocations: 12.03 kB / 435.9 MB, free: 15.3 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008412/0.2532, allocations: 320.5 kB / 436.2 MB, free: 14.98 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002412/0.2557, allocations: 1.524 MB / 437.7 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001455/0.2558, allocations: 176.4 kB / 437.9 MB, free: 13.22 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000293/0.2561, allocations: 219.9 kB / 438.1 MB, free: 13.01 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004716/0.2609, allocations: 2.909 MB / 441 MB, free: 10.01 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.635e-05/0.2609, allocations: 15.91 kB / 441 MB, free: 9.996 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002398/0.2612, allocations: 91.98 kB / 441.1 MB, free: 9.906 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001099/0.2613, allocations: 108.3 kB / 441.2 MB, free: 9.797 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004048/0.2654, allocations: 2.441 MB / 443.7 MB, free: 7.34 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01336/0.2787, allocations: 9.157 MB / 452.8 MB, free: 13.89 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002249/0.281, allocations: 1.701 MB / 454.5 MB, free: 12.07 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001664/0.2827, allocations: 1.016 MB / 455.5 MB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002586/0.283, allocations: 203.2 kB / 455.7 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.722e-05/0.283, allocations: 47.5 kB / 455.8 MB, free: 10.77 MB / 330.7 MB Notification: Performance of pre-optimization done (n=105): time 3.006e-06/0.283, allocations: 4 kB / 455.8 MB, free: 10.76 MB / 330.7 MB Notification: Performance of matching and sorting (n=122): time 0.01351/0.2965, allocations: 6.685 MB / 462.5 MB, free: 3.914 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.175e-05/0.2966, allocations: 60.41 kB / 462.5 MB, free: 3.844 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00222/0.2989, allocations: 1.55 MB / 464.1 MB, free: 2.285 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.519e-05/0.2989, allocations: 49.69 kB / 464.1 MB, free: 2.23 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007698/0.2997, allocations: 1.104 MB / 465.2 MB, free: 1.109 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003427/0.3001, allocations: 433.8 kB / 465.7 MB, free: 0.6797 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.146e-05/0.3002, allocations: 35.94 kB / 465.7 MB, free: 0.6445 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.3003, allocations: 369.9 kB / 466.1 MB, free: 284 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001164/0.3015, allocations: 0.7106 MB / 466.8 MB, free: 15.56 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001401/0.3029, allocations: 1.15 MB / 467.9 MB, free: 14.23 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001357/0.3043, allocations: 0.8925 MB / 468.8 MB, free: 13.34 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.3043, allocations: 8 kB / 468.8 MB, free: 13.33 MB / 346.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004125/0.3084, allocations: 2.526 MB / 471.3 MB, free: 10.77 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.615e-05/0.3085, allocations: 14.5 kB / 471.4 MB, free: 10.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.964e-05/0.3085, allocations: 12 kB / 471.4 MB, free: 10.74 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001/0.3095, allocations: 439 kB / 471.8 MB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/0.3108, allocations: 355.5 kB / 472.1 MB, free: 9.961 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006288/0.3171, allocations: 6.557 MB / 478.7 MB, free: 2.996 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001404/0.3185, allocations: 107.9 kB / 478.8 MB, free: 2.891 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001224/0.3186, allocations: 60 kB / 478.9 MB, free: 2.832 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 165 * 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: 3 * 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: 3 {(3,100.0%) 12,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001266/0.3199, allocations: 0.716 MB / 479.6 MB, free: 2.105 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003264/0.3202, allocations: 173.8 kB / 479.8 MB, free: 1.934 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003712/0.3239, allocations: 2.21 MB / 482 MB, free: 15.68 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.404e-05/0.324, allocations: 12 kB / 482 MB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.015e-05/0.324, allocations: 7.984 kB / 482 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.195e-05/0.324, allocations: 7.984 kB / 482 MB, free: 15.65 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007566/0.3316, allocations: 4.819 MB / 486.8 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/0.3316, allocations: 4 kB / 486.8 MB, free: 10.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009092/0.3325, allocations: 227.7 kB / 487 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001113/0.3337, allocations: 458 kB / 487.5 MB, free: 10 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.354e-05/0.3338, allocations: 35.98 kB / 487.5 MB, free: 9.965 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007099/0.3409, allocations: 7.967 MB / 495.5 MB, free: 1.461 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.702e-06/0.3409, allocations: 7.938 kB / 495.5 MB, free: 1.453 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004889/0.3458, allocations: 3.24 MB / 498.7 MB, free: 14.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008359/0.3467, allocations: 398.9 kB / 499.1 MB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001871/0.3469, allocations: 28 kB / 499.1 MB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008497/0.3477, allocations: 91.89 kB / 499.2 MB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002143/0.3479, allocations: 100.8 kB / 499.3 MB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.344e-05/0.348, allocations: 39.98 kB / 499.4 MB, free: 13.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001575/0.3496, allocations: 1.059 MB / 0.4887 GB, free: 12.39 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3496, allocations: 0 / 0.4887 GB, free: 12.39 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001581/0.3512, allocations: 488.1 kB / 0.4892 GB, free: 11.92 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 103 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 12,(1,100.0%) 6,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000317/0.3515, allocations: 174.2 kB / 0.4893 GB, free: 11.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003527/0.3551, allocations: 2.309 MB / 0.4916 GB, free: 9.375 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.3551, allocations: 0 / 0.4916 GB, free: 9.375 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00237/0.3575, allocations: 1.481 MB / 0.493 GB, free: 7.844 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002406/0.3599, allocations: 461.9 kB / 0.4935 GB, free: 7.402 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007986/0.3679, allocations: 5.636 MB / 0.499 GB, free: 1.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1571/0.525, allocations: 1.836 MB / 0.5008 GB, free: 89.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006284/0.5257, allocations: 131.7 kB / 0.5009 GB, free: 89.53 MB / 378.7 MB Notification: Performance of SimCode: time 8.32e-07/0.5257, allocations: 0.7188 kB / 0.5009 GB, free: 89.53 MB / 378.7 MB Notification: Performance of Templates: time 0.05554/0.5812, allocations: 73.33 MB / 0.5725 GB, free: 26.34 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches