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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001323/0.001323, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001474/0.001474, allocations: 192.5 kB / 24.49 MB, free: 3.941 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.469/1.469, allocations: 225.7 MB / 253.3 MB, free: 12.81 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.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001708/0.001708, allocations: 47.92 kB / 371.2 MB, free: 9.637 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2655, allocations: 52.18 MB / 423.4 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01183/0.2773, allocations: 8.531 MB / 431.9 MB, free: 5.801 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006263/0.2836, allocations: 2.921 MB / 434.8 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001626/0.2852, allocations: 71.5 kB / 434.9 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002161/0.2874, allocations: 0.6637 MB / 435.6 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003002/0.2904, allocations: 0.8077 MB / 436.4 MB, free: 1.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00134/0.2917, allocations: 395.4 kB / 436.7 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003723/0.2954, allocations: 2.541 MB / 439.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001835/0.2973, allocations: 1.303 MB / 440.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001903/0.2992, allocations: 1.215 MB / 441.8 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002476/0.3017, allocations: 1.537 MB / 443.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006614/0.3023, allocations: 316 kB / 443.7 MB, free: 9.945 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009/0.3032, allocations: 415.8 kB / 444.1 MB, free: 9.539 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001068/0.3043, allocations: 0.9154 MB / 445 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001435/0.3057, allocations: 1.151 MB / 446.1 MB, free: 7.465 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004864/0.3106, allocations: 4.181 MB / 450.3 MB, free: 3.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/0.3106, allocations: 0 / 450.3 MB, free: 3.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3106, allocations: 3.938 kB / 450.3 MB, free: 3.266 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.44e-05/0.3107, allocations: 0 / 450.3 MB, free: 3.266 MB / 350.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.006375/0.3171, allocations: 2.897 MB / 453.2 MB, free: 328 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.174e-05/0.3171, allocations: 12.03 kB / 453.2 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.86e-05/0.3172, allocations: 56.41 kB / 453.3 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000467/0.3177, allocations: 312.3 kB / 453.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008781/0.3185, allocations: 303.1 kB / 453.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00314/0.3217, allocations: 1.471 MB / 455.3 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001563/0.3218, allocations: 160.2 kB / 455.5 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003328/0.3222, allocations: 208 kB / 455.7 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005588/0.3278, allocations: 2.904 MB / 458.6 MB, free: 10.74 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001033/0.3279, allocations: 8 kB / 458.6 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002767/0.3281, allocations: 87.94 kB / 458.7 MB, free: 10.65 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001334/0.3283, allocations: 112.1 kB / 458.8 MB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004591/0.3329, allocations: 2.339 MB / 461.1 MB, free: 8.18 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01379/0.3466, allocations: 7.696 MB / 468.8 MB, free: 244 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002382/0.349, allocations: 1.186 MB / 470 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00164/0.3507, allocations: 0.8967 MB / 470.9 MB, free: 14.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002115/0.3509, allocations: 52.97 kB / 471 MB, free: 14.09 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.687e-05/0.3509, allocations: 51.48 kB / 471 MB, free: 14.03 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 1.659e-05/0.351, allocations: 4 kB / 471 MB, free: 14.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01314/0.3641, allocations: 5.723 MB / 476.8 MB, free: 8.273 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.64e-05/0.3642, allocations: 68.34 kB / 476.8 MB, free: 8.195 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002154/0.3663, allocations: 1.437 MB / 478.3 MB, free: 6.746 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001388/0.3665, allocations: 49.7 kB / 478.3 MB, free: 6.691 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008718/0.3673, allocations: 1.063 MB / 479.4 MB, free: 5.617 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003811/0.3677, allocations: 432.3 kB / 479.8 MB, free: 5.191 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005451/0.3683, allocations: 255.5 kB / 480 MB, free: 4.934 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002075/0.3685, allocations: 357.9 kB / 480.4 MB, free: 4.578 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001197/0.3697, allocations: 0.691 MB / 481.1 MB, free: 3.887 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001595/0.3713, allocations: 1.069 MB / 482.2 MB, free: 2.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002993/0.3742, allocations: 1.868 MB / 484 MB, free: 0.6289 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.217e-06/0.3743, allocations: 4 kB / 484 MB, free: 0.625 MB / 382.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004453/0.3787, allocations: 2.35 MB / 486.4 MB, free: 14.25 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.846e-05/0.3787, allocations: 11.94 kB / 486.4 MB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.026e-05/0.3788, allocations: 12 kB / 486.4 MB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001003/0.3798, allocations: 411.4 kB / 486.8 MB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/0.3811, allocations: 327.5 kB / 487.1 MB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007722/0.3888, allocations: 6.697 MB / 493.8 MB, free: 6.457 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001537/0.3903, allocations: 95.89 kB / 493.9 MB, free: 6.363 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001359/0.3904, allocations: 56 kB / 494 MB, free: 6.309 MB / 398.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.001286/0.3917, allocations: 0.6973 MB / 494.7 MB, free: 5.602 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003276/0.3921, allocations: 170.9 kB / 494.8 MB, free: 5.434 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003801/0.3959, allocations: 2.036 MB / 496.9 MB, free: 3.371 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.206e-05/0.3959, allocations: 16 kB / 496.9 MB, free: 3.355 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.3959, allocations: 4 kB / 496.9 MB, free: 3.352 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.282e-05/0.3959, allocations: 7.969 kB / 496.9 MB, free: 3.344 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007916/0.4038, allocations: 4.222 MB / 0.4894 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.462e-06/0.4038, allocations: 0 / 0.4894 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/0.4048, allocations: 211.7 kB / 0.4896 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001139/0.406, allocations: 447.4 kB / 0.49 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001699/0.4061, allocations: 43.86 kB / 0.49 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008683/0.4148, allocations: 8.159 MB / 0.498 GB, free: 5.695 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.4148, allocations: 7.938 kB / 0.498 GB, free: 5.688 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005103/0.4199, allocations: 3.017 MB / 0.501 GB, free: 2.605 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008668/0.4208, allocations: 314.8 kB / 0.5013 GB, free: 2.297 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002317/0.421, allocations: 27.98 kB / 0.5013 GB, free: 2.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009128/0.4219, allocations: 91.84 kB / 0.5014 GB, free: 2.18 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002458/0.4222, allocations: 96.77 kB / 0.5015 GB, free: 2.086 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.931e-05/0.4223, allocations: 35.98 kB / 0.5015 GB, free: 2.051 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001634/0.4239, allocations: 0.9886 MB / 0.5025 GB, free: 1.062 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4239, allocations: 0 / 0.5025 GB, free: 1.062 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001625/0.4255, allocations: 467.9 kB / 0.5029 GB, free: 0.6055 MB / 414.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.005689/0.4312, allocations: 3.667 MB / 0.5065 GB, free: 12.86 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0041/0.4353, allocations: 2.09 MB / 0.5085 GB, free: 10.72 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/0.4353, allocations: 0 / 0.5085 GB, free: 10.72 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002577/0.4379, allocations: 1.384 MB / 0.5099 GB, free: 9.289 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00218/0.4401, allocations: 416 kB / 0.5103 GB, free: 8.891 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03012/0.4702, allocations: 16.77 MB / 0.5267 GB, free: 7.461 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002044/0.4722, allocations: 1.235 MB / 0.5279 GB, free: 6.184 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00126/0.4735, allocations: 357.6 kB / 0.5282 GB, free: 5.828 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001406/0.4749, allocations: 0.8195 MB / 0.529 GB, free: 5.008 MB / 446.1 MB Notification: Performance of SimCode: time 1.613e-06/0.4749, allocations: 0 / 0.529 GB, free: 5.008 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2988/0.7737, allocations: 44.83 MB / 0.5728 GB, free: 112.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.6/15.37, allocations: 10.89 kB / 0.5728 GB, free: 112.4 MB / 462.1 MB " [Timeout remaining time 644] (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 --stepSize=0.0001 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 21.880575206014328]