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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001417/0.001417, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001537/0.001537, allocations: 186.2 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] 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.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001743/0.001743, allocations: 43.92 kB / 370.5 MB, free: 9.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.2506, allocations: 52.19 MB / 422.6 MB, free: 14.57 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01328/0.2639, allocations: 10.42 MB / 433.1 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007822/0.2717, allocations: 3.446 MB / 436.5 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001751/0.2735, allocations: 75.5 kB / 436.6 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002636/0.2761, allocations: 0.8188 MB / 437.4 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003257/0.2794, allocations: 0.8893 MB / 438.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001363/0.2807, allocations: 443.3 kB / 438.7 MB, free: 14.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004051/0.2848, allocations: 2.75 MB / 441.5 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00267/0.2874, allocations: 1.348 MB / 442.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002023/0.2895, allocations: 1.293 MB / 444.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002914/0.2924, allocations: 1.623 MB / 445.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008874/0.2933, allocations: 336 kB / 446.1 MB, free: 7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001261/0.2945, allocations: 439.8 kB / 446.5 MB, free: 6.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001347/0.2959, allocations: 0.9504 MB / 447.4 MB, free: 5.617 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002618/0.2985, allocations: 1.505 MB / 448.9 MB, free: 4.105 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005985/0.3045, allocations: 4.398 MB / 453.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.3045, allocations: 3.938 kB / 453.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3045, allocations: 0 / 453.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001291/0.3046, allocations: 0 / 453.4 MB, free: 15.69 MB / 366.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.007921/0.3125, allocations: 3.053 MB / 456.4 MB, free: 12.59 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.3126, allocations: 8.031 kB / 456.4 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008015/0.3134, allocations: 325 kB / 456.7 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00106/0.3144, allocations: 327 kB / 457 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003818/0.3183, allocations: 1.554 MB / 458.6 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001718/0.3184, allocations: 168.4 kB / 458.8 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005412/0.319, allocations: 220 kB / 459 MB, free: 9.953 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006143/0.3251, allocations: 2.917 MB / 461.9 MB, free: 6.949 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.933e-05/0.3252, allocations: 4 kB / 461.9 MB, free: 6.945 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002688/0.3255, allocations: 99.98 kB / 462 MB, free: 6.848 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00013/0.3256, allocations: 108.3 kB / 462.1 MB, free: 6.738 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005388/0.331, allocations: 2.433 MB / 464.5 MB, free: 4.289 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01875/0.3497, allocations: 8.88 MB / 473.4 MB, free: 11.13 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002438/0.3522, allocations: 1.177 MB / 474.6 MB, free: 9.945 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001842/0.354, allocations: 0.9248 MB / 475.5 MB, free: 9.02 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002573/0.3543, allocations: 60.94 kB / 475.6 MB, free: 8.961 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.544e-05/0.3543, allocations: 43.56 kB / 475.6 MB, free: 8.906 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 3.286e-06/0.3543, allocations: 0 / 475.6 MB, free: 8.906 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.0152/0.3695, allocations: 6.058 MB / 481.7 MB, free: 2.82 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.948e-05/0.3696, allocations: 68.39 kB / 481.7 MB, free: 2.742 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002959/0.3725, allocations: 1.565 MB / 483.3 MB, free: 1.168 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001189/0.3727, allocations: 45.7 kB / 483.4 MB, free: 1.117 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001084/0.3738, allocations: 1.138 MB / 484.5 MB, free: 15.96 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004612/0.3742, allocations: 452.2 kB / 484.9 MB, free: 15.52 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005035/0.3747, allocations: 275.5 kB / 485.2 MB, free: 15.24 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.3748, allocations: 305.1 kB / 485.5 MB, free: 14.94 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001331/0.3762, allocations: 0.7105 MB / 486.2 MB, free: 14.23 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001681/0.3779, allocations: 1.15 MB / 487.4 MB, free: 12.89 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003163/0.381, allocations: 1.963 MB / 489.3 MB, free: 10.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.074e-05/0.381, allocations: 4 kB / 489.3 MB, free: 10.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004792/0.3858, allocations: 2.444 MB / 491.8 MB, free: 8.285 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.849e-05/0.3859, allocations: 8 kB / 491.8 MB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.444e-05/0.3859, allocations: 12 kB / 491.8 MB, free: 8.266 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/0.3869, allocations: 431.3 kB / 492.2 MB, free: 7.832 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001367/0.3883, allocations: 347.5 kB / 492.6 MB, free: 7.492 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008094/0.3964, allocations: 6.821 MB / 499.4 MB, free: 344 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001517/0.3979, allocations: 115.8 kB / 499.5 MB, free: 228 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002695/0.3982, allocations: 60 kB / 499.6 MB, free: 168 kB / 398.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.001732/0.3999, allocations: 0.7132 MB / 0.4885 GB, free: 15.44 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006165/0.4005, allocations: 178.8 kB / 0.4887 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004557/0.4051, allocations: 2.111 MB / 0.4908 GB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.635e-05/0.4051, allocations: 12 kB / 0.4908 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.685e-05/0.4051, allocations: 11.94 kB / 0.4908 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.146e-05/0.4051, allocations: 7.969 kB / 0.4908 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01014/0.4153, allocations: 4.652 MB / 0.4953 GB, free: 8.32 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.849e-05/0.4153, allocations: 8 kB / 0.4954 GB, free: 8.312 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001049/0.4164, allocations: 219.7 kB / 0.4956 GB, free: 8.098 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00131/0.4177, allocations: 451.3 kB / 0.496 GB, free: 7.645 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001388/0.4178, allocations: 39.98 kB / 0.496 GB, free: 7.605 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009924/0.4277, allocations: 8.28 MB / 0.5041 GB, free: 14.87 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.104e-06/0.4277, allocations: 4 kB / 0.5041 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006439/0.4342, allocations: 3.144 MB / 0.5072 GB, free: 11.64 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001328/0.4355, allocations: 326.7 kB / 0.5075 GB, free: 11.32 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005888/0.4361, allocations: 31.98 kB / 0.5075 GB, free: 11.29 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001225/0.4373, allocations: 87.91 kB / 0.5076 GB, free: 11.21 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002877/0.4376, allocations: 108.6 kB / 0.5077 GB, free: 11.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001207/0.4377, allocations: 39.98 kB / 0.5078 GB, free: 11.06 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002211/0.4399, allocations: 1.066 MB / 0.5088 GB, free: 10 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4399, allocations: 0 / 0.5088 GB, free: 10 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002121/0.4421, allocations: 496.1 kB / 0.5093 GB, free: 9.516 MB / 430.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.006521/0.4486, allocations: 3.785 MB / 0.513 GB, free: 5.641 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004236/0.4528, allocations: 2.147 MB / 0.5151 GB, free: 3.449 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.404e-06/0.4528, allocations: 4 kB / 0.5151 GB, free: 3.445 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00262/0.4554, allocations: 1.427 MB / 0.5165 GB, free: 1.969 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002686/0.4581, allocations: 472.1 kB / 0.5169 GB, free: 1.512 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0336/0.4917, allocations: 17.76 MB / 0.5343 GB, free: 15.03 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002271/0.494, allocations: 1.864 MB / 0.5361 GB, free: 13.14 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001414/0.4954, allocations: 386.9 kB / 0.5364 GB, free: 12.75 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001505/0.4969, allocations: 0.8742 MB / 0.5373 GB, free: 11.88 MB / 462.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4969, allocations: 4 kB / 0.5373 GB, free: 11.88 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3095/0.8064, allocations: 46.66 MB / 0.5829 GB, free: 100.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.83/15.63, allocations: 8.062 kB / 0.5829 GB, free: 100.2 MB / 462.1 MB " [Timeout remaining time 644] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 20.25765956705436]