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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 113.6 kB / 17.69 MB, free: 5.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 192 kB / 18.63 MB, free: 4.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 222.9 MB / 242.3 MB, free: 15.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009988/0.0009988, allocations: 47.41 kB / 302.1 MB, free: 5.227 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09173/0.09275, allocations: 49.44 MB / 351.5 MB, free: 3.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01118/0.104, allocations: 10.3 MB / 361.8 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006474/0.1105, allocations: 3.427 MB / 365.2 MB, free: 5.969 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001639/0.1122, allocations: 63.69 kB / 365.3 MB, free: 5.906 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001828/0.1141, allocations: 0.7685 MB / 366.1 MB, free: 5.133 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002404/0.1165, allocations: 0.8346 MB / 366.9 MB, free: 4.293 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008097/0.1173, allocations: 411.4 kB / 367.3 MB, free: 3.891 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002778/0.1201, allocations: 2.754 MB / 370.1 MB, free: 1.129 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.186/0.3061, allocations: 2.399 MB / 372.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002397/0.3086, allocations: 1.26 MB / 373.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002267/0.3109, allocations: 1.578 MB / 375.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005824/0.3115, allocations: 338.3 kB / 375.6 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008145/0.3123, allocations: 433.9 kB / 376 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009354/0.3132, allocations: 0.9328 MB / 377 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001421/0.3147, allocations: 1.502 MB / 378.5 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004562/0.3192, allocations: 4.388 MB / 382.9 MB, free: 9.957 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.3193, allocations: 1.125 kB / 382.9 MB, free: 9.957 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3193, allocations: 3.938 kB / 382.9 MB, free: 9.953 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.353e-05/0.3194, allocations: 0 / 382.9 MB, free: 9.953 MB / 302.1 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.005826/0.3252, allocations: 3.047 MB / 385.9 MB, free: 8.234 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.875e-05/0.3252, allocations: 9.406 kB / 385.9 MB, free: 8.234 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007551/0.326, allocations: 314.8 kB / 386.2 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002716/0.3287, allocations: 1.625 MB / 387.9 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001213/0.3289, allocations: 170.6 kB / 388 MB, free: 7.148 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003354/0.3292, allocations: 227.3 kB / 388.3 MB, free: 7.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004207/0.3334, allocations: 2.914 MB / 391.2 MB, free: 5.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.379e-05/0.3335, allocations: 9.656 kB / 391.2 MB, free: 5.426 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001996/0.3337, allocations: 89.09 kB / 391.3 MB, free: 5.359 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.19e-05/0.3338, allocations: 109.8 kB / 391.4 MB, free: 5.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003664/0.3375, allocations: 2.438 MB / 393.8 MB, free: 4.098 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01264/0.3501, allocations: 9.008 MB / 402.8 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002385/0.3525, allocations: 1.709 MB / 404.5 MB, free: 11.82 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001689/0.3542, allocations: 0.9925 MB / 405.5 MB, free: 10.83 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003052/0.3546, allocations: 209.5 kB / 405.7 MB, free: 10.59 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.641e-05/0.3546, allocations: 51.5 kB / 405.8 MB, free: 10.53 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 2.835e-06/0.3546, allocations: 0 / 405.8 MB, free: 10.53 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01423/0.3689, allocations: 6.546 MB / 412.3 MB, free: 3.859 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.195e-05/0.3689, allocations: 64.41 kB / 412.4 MB, free: 3.785 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002308/0.3713, allocations: 1.569 MB / 414 MB, free: 2.207 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001115/0.3714, allocations: 45.7 kB / 414 MB, free: 2.156 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007483/0.3721, allocations: 1.114 MB / 415.1 MB, free: 1.031 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003136/0.3725, allocations: 419.5 kB / 415.5 MB, free: 0.625 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004351/0.3729, allocations: 271.4 kB / 415.8 MB, free: 364 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.309e-05/0.373, allocations: 311.8 kB / 416.1 MB, free: 52 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001151/0.3742, allocations: 0.7105 MB / 416.8 MB, free: 15.34 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001365/0.3755, allocations: 1.136 MB / 417.9 MB, free: 14.03 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002562/0.3781, allocations: 1.972 MB / 419.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.3781, allocations: 4 kB / 419.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004213/0.3823, allocations: 2.52 MB / 422.4 MB, free: 9.457 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.626e-05/0.3824, allocations: 12 kB / 422.4 MB, free: 9.445 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.088e-05/0.3824, allocations: 15.94 kB / 422.5 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001012/0.3834, allocations: 427.9 kB / 422.9 MB, free: 9.004 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/0.3847, allocations: 349.7 kB / 423.2 MB, free: 8.684 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006951/0.3917, allocations: 7.138 MB / 430.4 MB, free: 1.168 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001646/0.3933, allocations: 103.8 kB / 430.5 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000125/0.3935, allocations: 60 kB / 430.5 MB, free: 1.008 MB / 334.1 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 (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001358/0.3948, allocations: 0.7198 MB / 431.2 MB, free: 304 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003431/0.3952, allocations: 171.7 kB / 431.4 MB, free: 132 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003899/0.3991, allocations: 2.208 MB / 433.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.39e-05/0.3991, allocations: 16.08 kB / 433.6 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.593e-05/0.3992, allocations: 7.984 kB / 433.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.116e-05/0.3992, allocations: 3.984 kB / 433.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008207/0.4074, allocations: 4.772 MB / 438.4 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.4074, allocations: 4.562 kB / 438.4 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009661/0.4084, allocations: 219 kB / 438.6 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001142/0.4095, allocations: 457.3 kB / 439.1 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.249e-05/0.4096, allocations: 35.98 kB / 439.1 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008247/0.4179, allocations: 8.68 MB / 447.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/0.4179, allocations: 8.125 kB / 447.8 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005361/0.4233, allocations: 3.222 MB / 451 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001359/0.4247, allocations: 398.8 kB / 451.4 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002558/0.425, allocations: 36 kB / 451.4 MB, free: 11.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009673/0.4259, allocations: 83.91 kB / 451.5 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000283/0.4262, allocations: 107.5 kB / 451.6 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.712e-05/0.4263, allocations: 39.98 kB / 451.7 MB, free: 11.22 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001783/0.4281, allocations: 1.066 MB / 452.7 MB, free: 10.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4281, allocations: 0 / 452.7 MB, free: 10.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001938/0.4301, allocations: 492 kB / 453.2 MB, free: 9.676 MB / 366.1 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003862/0.4305, allocations: 200 kB / 453.4 MB, free: 9.484 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003722/0.4342, allocations: 2.292 MB / 455.7 MB, free: 7.188 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/0.4342, allocations: 1.469 kB / 455.7 MB, free: 7.188 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002377/0.4366, allocations: 1.475 MB / 457.2 MB, free: 5.688 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002341/0.439, allocations: 476.2 kB / 457.6 MB, free: 5.234 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007946/0.4469, allocations: 4.673 MB / 462.3 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001629/0.4486, allocations: 1.864 MB / 464.2 MB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001297/0.4499, allocations: 394.8 kB / 464.6 MB, free: 14.21 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003613/0.4503, allocations: 119.4 kB / 464.7 MB, free: 14.1 MB / 382.1 MB Notification: Performance of SimCode: time 1.263e-06/0.4503, allocations: 0 / 464.7 MB, free: 14.1 MB / 382.1 MB Notification: Performance of Templates: time 0.04593/0.4962, allocations: 26.36 MB / 491.1 MB, free: 4.074 MB / 398.1 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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