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.001252/0.001252, allocations: 108 kB / 20.43 MB, free: 1.473 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.00131/0.00131, allocations: 186.2 kB / 23.71 MB, free: 4.719 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.417/1.417, allocations: 225.6 MB / 252.5 MB, free: 13.02 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="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.001745/0.001745, allocations: 47.92 kB / 370.5 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2829/0.2846, allocations: 52.19 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.0134/0.298, allocations: 9.728 MB / 432.4 MB, free: 4.836 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007683/0.3057, allocations: 3.112 MB / 435.5 MB, free: 1.715 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001962/0.3077, allocations: 71.5 kB / 435.6 MB, free: 1.645 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002789/0.3104, allocations: 0.7176 MB / 436.3 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003836/0.3143, allocations: 0.8116 MB / 437.1 MB, free: 112 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001452/0.3157, allocations: 399.3 kB / 437.5 MB, free: 15.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004393/0.3201, allocations: 2.552 MB / 440 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002976/0.3231, allocations: 1.303 MB / 441.3 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002462/0.3256, allocations: 1.211 MB / 442.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003055/0.3286, allocations: 1.53 MB / 444.1 MB, free: 9.043 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009043/0.3295, allocations: 320 kB / 444.4 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001525/0.3311, allocations: 423.8 kB / 444.8 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001462/0.3325, allocations: 0.9154 MB / 445.7 MB, free: 7.398 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002885/0.3354, allocations: 1.419 MB / 447.1 MB, free: 5.973 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006622/0.342, allocations: 4.157 MB / 451.3 MB, free: 1.801 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.753e-06/0.342, allocations: 7.938 kB / 451.3 MB, free: 1.793 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.342, allocations: 4 kB / 451.3 MB, free: 1.789 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001827/0.3422, allocations: 0 / 451.3 MB, free: 1.789 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.009425/0.3516, allocations: 2.889 MB / 454.2 MB, free: 14.85 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.414e-05/0.3517, allocations: 12.03 kB / 454.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009781/0.3527, allocations: 308.2 kB / 454.5 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001217/0.3539, allocations: 307.2 kB / 454.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003954/0.3578, allocations: 1.475 MB / 456.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001837/0.358, allocations: 160.1 kB / 456.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005996/0.3586, allocations: 212 kB / 456.6 MB, free: 12.34 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005345/0.364, allocations: 2.803 MB / 459.4 MB, free: 9.449 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.712e-05/0.364, allocations: 0 / 459.4 MB, free: 9.449 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002062/0.3642, allocations: 88 kB / 459.5 MB, free: 9.363 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001211/0.3644, allocations: 104.2 kB / 459.6 MB, free: 9.258 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004392/0.3687, allocations: 2.351 MB / 462 MB, free: 6.891 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01505/0.3838, allocations: 8.359 MB / 470.3 MB, free: 14.29 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002379/0.3862, allocations: 1.193 MB / 471.5 MB, free: 13.08 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001771/0.3879, allocations: 0.8967 MB / 472.4 MB, free: 12.18 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002553/0.3882, allocations: 61.89 kB / 472.5 MB, free: 12.12 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.89e-05/0.3882, allocations: 47.5 kB / 472.5 MB, free: 12.07 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 3.456e-06/0.3883, allocations: 0 / 472.5 MB, free: 12.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01333/0.4016, allocations: 5.726 MB / 478.3 MB, free: 6.309 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.719e-05/0.4017, allocations: 68.41 kB / 478.3 MB, free: 6.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002331/0.404, allocations: 1.437 MB / 479.8 MB, free: 4.781 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.504e-05/0.4041, allocations: 45.7 kB / 479.8 MB, free: 4.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009788/0.4051, allocations: 1.067 MB / 480.9 MB, free: 3.652 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004212/0.4055, allocations: 424.3 kB / 481.3 MB, free: 3.234 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004458/0.4059, allocations: 255.5 kB / 481.5 MB, free: 2.977 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002088/0.4061, allocations: 361.9 kB / 481.9 MB, free: 2.617 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00119/0.4073, allocations: 0.691 MB / 482.6 MB, free: 1.926 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001533/0.4089, allocations: 1.066 MB / 483.7 MB, free: 0.7031 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002837/0.4117, allocations: 1.871 MB / 485.5 MB, free: 14.67 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/0.4117, allocations: 4 kB / 485.5 MB, free: 14.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004359/0.4161, allocations: 2.35 MB / 487.9 MB, free: 12.29 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.069e-05/0.4161, allocations: 12 kB / 487.9 MB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.057e-05/0.4161, allocations: 15.94 kB / 487.9 MB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001022/0.4171, allocations: 411.3 kB / 488.3 MB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001217/0.4184, allocations: 327.5 kB / 488.6 MB, free: 11.53 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007786/0.4261, allocations: 6.744 MB / 495.4 MB, free: 4.441 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001378/0.4275, allocations: 95.89 kB / 495.5 MB, free: 4.348 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001204/0.4276, allocations: 56 kB / 495.5 MB, free: 4.293 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.001411/0.4291, allocations: 0.6973 MB / 496.2 MB, free: 3.586 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003152/0.4294, allocations: 166.9 kB / 496.4 MB, free: 3.422 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003974/0.4333, allocations: 2.043 MB / 498.4 MB, free: 1.352 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.524e-05/0.4334, allocations: 12 kB / 498.4 MB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.298e-06/0.4334, allocations: 4 kB / 498.4 MB, free: 1.336 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.566e-05/0.4334, allocations: 7.969 kB / 498.4 MB, free: 1.328 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008227/0.4416, allocations: 4.448 MB / 0.4911 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.797e-06/0.4416, allocations: 4 kB / 0.4911 GB, free: 12.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009347/0.4426, allocations: 211.7 kB / 0.4913 GB, free: 12.56 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001194/0.4437, allocations: 458.8 kB / 0.4917 GB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.023e-05/0.4438, allocations: 31.98 kB / 0.4918 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009158/0.453, allocations: 8.214 MB / 0.4998 GB, free: 3.395 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/0.453, allocations: 7.938 kB / 0.4998 GB, free: 3.387 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005394/0.4584, allocations: 3.021 MB / 0.5028 GB, free: 308 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009461/0.4593, allocations: 310.8 kB / 0.5031 GB, free: 15.99 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002181/0.4596, allocations: 31.94 kB / 0.5031 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008546/0.4604, allocations: 87.84 kB / 0.5032 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002608/0.4607, allocations: 92.77 kB / 0.5033 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.155e-05/0.4608, allocations: 39.98 kB / 0.5033 GB, free: 15.75 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001591/0.4624, allocations: 0.9847 MB / 0.5043 GB, free: 14.77 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4624, allocations: 0 / 0.5043 GB, free: 14.77 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001825/0.4642, allocations: 459.9 kB / 0.5047 GB, free: 14.32 MB / 430.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.006131/0.4703, allocations: 3.674 MB / 0.5083 GB, free: 10.56 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004062/0.4744, allocations: 2.094 MB / 0.5103 GB, free: 8.422 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.244e-06/0.4744, allocations: 0.8125 kB / 0.5103 GB, free: 8.422 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002474/0.4769, allocations: 1.383 MB / 0.5117 GB, free: 6.988 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002139/0.479, allocations: 414.9 kB / 0.5121 GB, free: 6.59 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02956/0.5085, allocations: 16.77 MB / 0.5285 GB, free: 5.156 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001832/0.5104, allocations: 1.803 MB / 0.5302 GB, free: 3.32 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001214/0.5116, allocations: 365.6 kB / 0.5306 GB, free: 2.957 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001154/0.5127, allocations: 0.8194 MB / 0.5314 GB, free: 2.137 MB / 446.1 MB Notification: Performance of SimCode: time 1.453e-06/0.5127, allocations: 0 / 0.5314 GB, free: 2.137 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3022/0.8149, allocations: 43.28 MB / 0.5736 GB, free: 108.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.63/15.44, allocations: 4.062 kB / 0.5736 GB, free: 108.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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 19.82398133096285]