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.001536/0.001536, allocations: 124.7 kB / 17.79 MB, free: 5.246 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.00151/0.00151, allocations: 186.9 kB / 20.73 MB, free: 2.316 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.401/1.401, allocations: 225.6 MB / 249.1 MB, free: 3.637 MB / 190.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="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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001454/0.001454, allocations: 51.92 kB / 365.7 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09677/0.09822, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01184/0.1101, allocations: 9.68 MB / 427.5 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005776/0.1158, allocations: 3.1 MB / 430.6 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001066/0.1169, allocations: 55.75 kB / 430.6 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001741/0.1186, allocations: 0.7143 MB / 431.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002221/0.1209, allocations: 0.8038 MB / 432.2 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008802/0.1217, allocations: 391.5 kB / 432.5 MB, free: 13.83 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003062/0.1248, allocations: 2.549 MB / 435.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002278/0.1271, allocations: 1.658 MB / 436.7 MB, free: 9.543 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001759/0.1288, allocations: 1.191 MB / 437.9 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002029/0.1309, allocations: 1.526 MB / 439.5 MB, free: 6.816 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004714/0.1313, allocations: 320 kB / 439.8 MB, free: 6.504 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007444/0.1321, allocations: 419.8 kB / 440.2 MB, free: 6.094 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009208/0.133, allocations: 0.9115 MB / 441.1 MB, free: 5.18 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001523/0.1345, allocations: 1.416 MB / 442.5 MB, free: 3.758 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1985/0.333, allocations: 4.163 MB / 446.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.333, allocations: 0 / 446.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.333, allocations: 0 / 446.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001422/0.3331, allocations: 0.5 kB / 446.7 MB, free: 14.96 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.005328/0.3385, allocations: 2.969 MB / 449.6 MB, free: 13.71 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.253e-05/0.3385, allocations: 12.75 kB / 449.7 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003797/0.3389, allocations: 305.4 kB / 450 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006799/0.3396, allocations: 304.1 kB / 450.2 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002746/0.3423, allocations: 1.549 MB / 451.8 MB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.084e-05/0.3424, allocations: 160.6 kB / 452 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002795/0.3427, allocations: 214.6 kB / 452.2 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005031/0.3477, allocations: 2.798 MB / 455 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.979e-05/0.3478, allocations: 8.078 kB / 455 MB, free: 12.83 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001835/0.348, allocations: 87.97 kB / 455.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001187/0.3481, allocations: 105.5 kB / 455.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004069/0.3522, allocations: 2.348 MB / 457.5 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01345/0.3656, allocations: 8.523 MB / 466 MB, free: 9.102 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002129/0.3677, allocations: 1.636 MB / 467.7 MB, free: 8.098 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001574/0.3693, allocations: 0.9074 MB / 468.6 MB, free: 7.816 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002461/0.3695, allocations: 208.2 kB / 468.8 MB, free: 7.617 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.881e-05/0.3696, allocations: 45 kB / 468.8 MB, free: 7.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=101): time 2.886e-06/0.3696, allocations: 2.078 kB / 468.8 MB, free: 7.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=116): time 0.01257/0.3822, allocations: 6.256 MB / 475.1 MB, free: 4.848 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.906e-05/0.3822, allocations: 64.78 kB / 475.1 MB, free: 4.781 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002033/0.3842, allocations: 1.443 MB / 476.6 MB, free: 4.016 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.656e-05/0.3843, allocations: 46.17 kB / 476.6 MB, free: 3.969 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006024/0.3849, allocations: 1.063 MB / 477.7 MB, free: 3.031 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002424/0.3851, allocations: 429.1 kB / 478.1 MB, free: 2.668 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003683/0.3855, allocations: 254.6 kB / 478.4 MB, free: 2.52 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.618e-05/0.3856, allocations: 365.4 kB / 478.7 MB, free: 2.172 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009267/0.3865, allocations: 0.6822 MB / 479.4 MB, free: 1.836 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001072/0.3876, allocations: 1.076 MB / 480.5 MB, free: 1.004 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002249/0.3898, allocations: 1.864 MB / 482.3 MB, free: 15.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.907e-06/0.3898, allocations: 6.469 kB / 482.3 MB, free: 15.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004243/0.3941, allocations: 2.419 MB / 484.8 MB, free: 14.57 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.207e-05/0.3941, allocations: 7.656 kB / 484.8 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.708e-05/0.3941, allocations: 13.62 kB / 484.8 MB, free: 14.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009103/0.395, allocations: 413.3 kB / 485.2 MB, free: 14.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/0.3961, allocations: 336.1 kB / 485.5 MB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007785/0.4039, allocations: 7.048 MB / 492.6 MB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001595/0.4055, allocations: 99.94 kB / 492.7 MB, free: 7.398 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001488/0.4056, allocations: 63.98 kB / 492.7 MB, free: 7.336 MB / 382.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.001349/0.407, allocations: 0.6868 MB / 493.4 MB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005153/0.4075, allocations: 170.9 kB / 493.6 MB, free: 6.488 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004047/0.4116, allocations: 2.12 MB / 495.7 MB, free: 4.332 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.277e-05/0.4116, allocations: 12 kB / 495.7 MB, free: 4.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.137e-05/0.4116, allocations: 4 kB / 495.7 MB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.473e-05/0.4116, allocations: 7.969 kB / 495.7 MB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009076/0.4207, allocations: 4.555 MB / 0.4886 GB, free: 15.7 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.4207, allocations: 7.688 kB / 0.4886 GB, free: 15.69 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009058/0.4216, allocations: 218.4 kB / 0.4888 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001146/0.4227, allocations: 443.7 kB / 0.4892 GB, free: 15.04 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001824/0.4229, allocations: 31.98 kB / 0.4892 GB, free: 15.01 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009385/0.4323, allocations: 8.636 MB / 0.4977 GB, free: 5.883 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.786e-06/0.4323, allocations: 4 kB / 0.4977 GB, free: 5.879 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005573/0.4379, allocations: 3.099 MB / 0.5007 GB, free: 2.711 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00109/0.439, allocations: 387.9 kB / 0.5011 GB, free: 2.312 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002345/0.4392, allocations: 28 kB / 0.5011 GB, free: 2.285 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009176/0.4401, allocations: 87.89 kB / 0.5012 GB, free: 2.199 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002285/0.4404, allocations: 92.09 kB / 0.5013 GB, free: 2.109 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.674e-05/0.4404, allocations: 40 kB / 0.5013 GB, free: 2.07 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001577/0.442, allocations: 0.9847 MB / 0.5023 GB, free: 1.086 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.442, allocations: 0 / 0.5023 GB, free: 1.086 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001637/0.4436, allocations: 463.9 kB / 0.5027 GB, free: 0.6328 MB / 398.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.005884/0.4495, allocations: 3.747 MB / 0.5064 GB, free: 12.83 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004236/0.4538, allocations: 2.161 MB / 0.5085 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.189e-06/0.4538, allocations: 0 / 0.5085 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00249/0.4563, allocations: 1.389 MB / 0.5098 GB, free: 9.242 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002022/0.4583, allocations: 420.8 kB / 0.5102 GB, free: 8.848 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02855/0.4868, allocations: 16.9 MB / 0.5267 GB, free: 7.391 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001839/0.4887, allocations: 1.803 MB / 0.5285 GB, free: 5.559 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001118/0.4898, allocations: 365.5 kB / 0.5288 GB, free: 5.195 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001141/0.4909, allocations: 0.8221 MB / 0.5296 GB, free: 4.375 MB / 430.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4909, allocations: 0 / 0.5296 GB, free: 4.375 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1033/0.5942, allocations: 42.16 MB / 0.5708 GB, free: 10.67 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/13.61, allocations: 6.719 kB / 0.5708 GB, free: 10.66 MB / 478.1 MB " [Timeout remaining time 646] (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_2/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_2/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 18.29669780191034]