Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009958/0.0009957, allocations: 90.34 kB / 16.65 MB, free: 6.535 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.0009445/0.0009445, allocations: 174.8 kB / 17.56 MB, free: 6.184 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.382/1.382, allocations: 223.3 MB / 241.6 MB, free: 14.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003541/0.0003541, allocations: 4 kB / 301.5 MB, free: 5.812 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1103, allocations: 50.42 MB / 352 MB, free: 3.379 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.009671/0.12, allocations: 9.037 MB / 361 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005828/0.1259, allocations: 3.034 MB / 364 MB, free: 7.254 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00165/0.1276, allocations: 47.75 kB / 364.1 MB, free: 7.207 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002024/0.1296, allocations: 0.5902 MB / 364.7 MB, free: 6.613 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002675/0.1323, allocations: 0.6877 MB / 365.4 MB, free: 5.922 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001103/0.1335, allocations: 347.6 kB / 365.7 MB, free: 5.582 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003706/0.1372, allocations: 2.849 MB / 368.5 MB, free: 2.723 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003136/0.1403, allocations: 1.957 MB / 370.5 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1773/0.3176, allocations: 0.8841 MB / 371.4 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002749/0.3204, allocations: 1.255 MB / 372.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008876/0.3213, allocations: 132.2 kB / 372.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001019/0.3224, allocations: 246.4 kB / 373 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007734/0.3232, allocations: 0.6786 MB / 373.7 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001245/0.3244, allocations: 1.192 MB / 374.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00391/0.3283, allocations: 3.875 MB / 378.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.3284, allocations: 1.406 kB / 378.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.3284, allocations: 1.375 kB / 378.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.302e-05/0.3284, allocations: 0 / 378.8 MB, free: 10.3 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.004523/0.333, allocations: 2.475 MB / 381.2 MB, free: 9.121 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/0.333, allocations: 9.875 kB / 381.2 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004179/0.3334, allocations: 308.4 kB / 381.5 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006555/0.3341, allocations: 291.7 kB / 381.8 MB, free: 8.934 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002002/0.3361, allocations: 1.492 MB / 383.3 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001479/0.3363, allocations: 170.3 kB / 383.5 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000323/0.3366, allocations: 215.8 kB / 383.7 MB, free: 8.461 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004487/0.3411, allocations: 2.808 MB / 386.5 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.487e-05/0.3412, allocations: 10.84 kB / 386.5 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000201/0.3414, allocations: 84.39 kB / 386.6 MB, free: 7.777 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001127/0.3415, allocations: 107.5 kB / 386.7 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003884/0.3454, allocations: 2.375 MB / 389.1 MB, free: 6.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01072/0.3561, allocations: 8.637 MB / 397.7 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00202/0.3582, allocations: 1.715 MB / 399.4 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001575/0.3597, allocations: 0.9864 MB / 400.4 MB, free: 15.18 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002562/0.36, allocations: 205.8 kB / 400.6 MB, free: 14.98 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.871e-05/0.3601, allocations: 39.5 kB / 400.7 MB, free: 14.93 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 2.394e-06/0.3601, allocations: 0 / 400.7 MB, free: 14.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01265/0.3727, allocations: 6.352 MB / 407 MB, free: 9.469 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.862e-05/0.3728, allocations: 64.41 kB / 407.1 MB, free: 9.395 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00196/0.3747, allocations: 1.437 MB / 408.5 MB, free: 7.945 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.353e-05/0.3748, allocations: 45.7 kB / 408.6 MB, free: 7.895 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007181/0.3756, allocations: 1.045 MB / 409.6 MB, free: 6.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003106/0.3759, allocations: 408.9 kB / 410 MB, free: 6.445 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001678/0.3761, allocations: 117.6 kB / 410.1 MB, free: 6.324 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.3762, allocations: 361.9 kB / 410.5 MB, free: 5.965 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001149/0.3774, allocations: 0.7015 MB / 411.2 MB, free: 5.266 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001393/0.3788, allocations: 1.08 MB / 412.2 MB, free: 4.023 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002655/0.3815, allocations: 1.887 MB / 414.1 MB, free: 2.02 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.542e-06/0.3815, allocations: 4 kB / 414.1 MB, free: 2.016 MB / 318.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003964/0.3855, allocations: 2.44 MB / 416.6 MB, free: 15.62 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.3855, allocations: 8 kB / 416.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.816e-05/0.3855, allocations: 12 kB / 416.6 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009589/0.3865, allocations: 416.6 kB / 417 MB, free: 15.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001178/0.3877, allocations: 331.2 kB / 417.3 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006382/0.3941, allocations: 6.469 MB / 423.8 MB, free: 8.043 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001161/0.3952, allocations: 111.8 kB / 423.9 MB, free: 7.934 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.3953, allocations: 56 kB / 424 MB, free: 7.879 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * 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,11,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.001294/0.3966, allocations: 0.692 MB / 424.7 MB, free: 7.195 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002666/0.3969, allocations: 154.1 kB / 424.8 MB, free: 7.043 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003723/0.4006, allocations: 2.155 MB / 427 MB, free: 4.855 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.174e-05/0.4007, allocations: 12 kB / 427 MB, free: 4.844 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.4007, allocations: 4 kB / 427 MB, free: 4.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/0.4007, allocations: 3.984 kB / 427 MB, free: 4.836 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007811/0.4085, allocations: 4.617 MB / 431.6 MB, free: 160 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.608e-06/0.4086, allocations: 4 kB / 431.6 MB, free: 156 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000949/0.4095, allocations: 214.5 kB / 431.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001232/0.4107, allocations: 459.2 kB / 432.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001179/0.4109, allocations: 35.98 kB / 432.3 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009633/0.4205, allocations: 7.937 MB / 440.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.849e-06/0.4206, allocations: 6.625 kB / 440.2 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00612/0.4267, allocations: 3.128 MB / 443.4 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001192/0.4279, allocations: 382.9 kB / 443.7 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004634/0.4284, allocations: 35.98 kB / 443.8 MB, free: 3.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001135/0.4295, allocations: 87.91 kB / 443.9 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002178/0.4297, allocations: 99.44 kB / 444 MB, free: 3.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.354e-05/0.4298, allocations: 35.98 kB / 444 MB, free: 3.191 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0019/0.4317, allocations: 0.9873 MB / 445 MB, free: 2.207 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.4318, allocations: 4 kB / 445 MB, free: 2.203 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001951/0.4337, allocations: 452 kB / 445.4 MB, free: 1.762 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],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 (102): * Single equations (assignments): 98 * 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,11,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.00542/0.4391, allocations: 3.775 MB / 449.2 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003719/0.4429, allocations: 2.241 MB / 451.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.4429, allocations: 4.312 kB / 451.4 MB, free: 11.65 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002307/0.4452, allocations: 1.456 MB / 452.9 MB, free: 10.17 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003175/0.4484, allocations: 395.4 kB / 453.3 MB, free: 9.789 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0343/0.4827, allocations: 19.4 MB / 472.7 MB, free: 5.332 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002032/0.4848, allocations: 1.803 MB / 474.5 MB, free: 3.496 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001334/0.4861, allocations: 365.6 kB / 474.8 MB, free: 3.133 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001215/0.4874, allocations: 0.8156 MB / 475.7 MB, free: 2.316 MB / 382.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4874, allocations: 0 / 475.7 MB, free: 2.316 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.965/2.453, allocations: 39.28 MB / 0.5029 GB, free: 11.54 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003244/2.453, allocations: 249.8 kB / 0.5031 GB, free: 11.29 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.301/5.754, allocations: 0 / 0.5031 GB, free: 11.29 MB / 430.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches