Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0015/0.0015, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00171/0.00171, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.51/1.51, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_1_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_1_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.001698/0.001698, allocations: 51.92 kB / 373 MB, free: 10.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1054, allocations: 53.32 MB / 426.3 MB, free: 4.758 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.2199/0.3252, allocations: 9.711 MB / 436 MB, free: 6.281 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005967/0.3312, allocations: 3.165 MB / 439.2 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001551/0.3327, allocations: 71.03 kB / 439.3 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002058/0.3348, allocations: 0.7146 MB / 440 MB, free: 4.398 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003605/0.3384, allocations: 0.8063 MB / 440.8 MB, free: 3.879 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001227/0.3396, allocations: 396.2 kB / 441.2 MB, free: 3.637 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003694/0.3433, allocations: 2.563 MB / 443.7 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003021/0.3463, allocations: 1.67 MB / 445.4 MB, free: 1.578 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002545/0.3489, allocations: 1.231 MB / 446.6 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002809/0.3517, allocations: 1.529 MB / 448.2 MB, free: 300 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006501/0.3523, allocations: 317.7 kB / 448.5 MB, free: 300 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001278/0.3536, allocations: 429.2 kB / 448.9 MB, free: 268 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001012/0.3546, allocations: 0.9004 MB / 449.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002223/0.3569, allocations: 1.424 MB / 451.2 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006351/0.3632, allocations: 4.177 MB / 455.4 MB, free: 12.96 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.3632, allocations: 0 / 455.4 MB, free: 12.96 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.088e-06/0.3632, allocations: 5.766 kB / 455.4 MB, free: 12.95 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001464/0.3634, allocations: 0 / 455.4 MB, free: 12.95 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.008347/0.3717, allocations: 2.979 MB / 458.4 MB, free: 10.86 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/0.3718, allocations: 14.22 kB / 458.4 MB, free: 10.86 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005391/0.3723, allocations: 309.6 kB / 458.7 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001021/0.3733, allocations: 315.2 kB / 459 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003178/0.3765, allocations: 1.553 MB / 460.6 MB, free: 9.336 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001587/0.3767, allocations: 162.4 kB / 460.7 MB, free: 9.258 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003685/0.377, allocations: 210.2 kB / 460.9 MB, free: 9.188 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005601/0.3826, allocations: 2.799 MB / 463.7 MB, free: 7.508 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.213e-05/0.3827, allocations: 2.25 kB / 463.7 MB, free: 7.508 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002254/0.3829, allocations: 92.08 kB / 463.8 MB, free: 7.438 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001361/0.3831, allocations: 105.4 kB / 463.9 MB, free: 7.418 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004695/0.3877, allocations: 2.355 MB / 466.3 MB, free: 6.207 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01527/0.403, allocations: 8.518 MB / 474.8 MB, free: 15.99 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002561/0.4056, allocations: 1.637 MB / 476.4 MB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001787/0.4074, allocations: 0.901 MB / 477.3 MB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003236/0.4077, allocations: 199.2 kB / 477.5 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.38e-05/0.4077, allocations: 51.5 kB / 477.6 MB, free: 13.05 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 3.387e-06/0.4077, allocations: 0 / 477.6 MB, free: 13.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01437/0.4221, allocations: 6.255 MB / 483.8 MB, free: 6.629 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.146e-05/0.4222, allocations: 68.39 kB / 483.9 MB, free: 6.551 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002376/0.4245, allocations: 1.441 MB / 485.3 MB, free: 5.094 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001254/0.4247, allocations: 45.7 kB / 485.4 MB, free: 5.043 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009174/0.4256, allocations: 1.067 MB / 486.5 MB, free: 3.965 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004207/0.426, allocations: 432.3 kB / 486.9 MB, free: 3.539 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004607/0.4265, allocations: 255.5 kB / 487.1 MB, free: 3.281 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001926/0.4267, allocations: 365.9 kB / 487.5 MB, free: 2.918 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001231/0.4279, allocations: 0.6871 MB / 488.2 MB, free: 2.23 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001518/0.4294, allocations: 1.077 MB / 489.2 MB, free: 0.9961 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002838/0.4322, allocations: 1.868 MB / 491.1 MB, free: 14.96 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.013e-05/0.4323, allocations: 4 kB / 491.1 MB, free: 14.96 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004567/0.4368, allocations: 2.414 MB / 493.5 MB, free: 12.51 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.841e-05/0.4369, allocations: 12 kB / 493.5 MB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.134e-05/0.4369, allocations: 12 kB / 493.6 MB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001045/0.4379, allocations: 415.9 kB / 494 MB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001249/0.4392, allocations: 331.5 kB / 494.3 MB, free: 11.74 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007761/0.4469, allocations: 7.041 MB / 0.4896 GB, free: 4.297 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001751/0.4487, allocations: 99.89 kB / 0.4897 GB, free: 4.199 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001868/0.4489, allocations: 59.98 kB / 0.4897 GB, free: 4.141 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.00146/0.4503, allocations: 0.6985 MB / 0.4904 GB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004437/0.4508, allocations: 166.9 kB / 0.4906 GB, free: 3.27 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004125/0.4549, allocations: 2.119 MB / 0.4926 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.619e-05/0.4549, allocations: 12 kB / 0.4927 GB, free: 1.094 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.4549, allocations: 7.938 kB / 0.4927 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.707e-05/0.4549, allocations: 7.969 kB / 0.4927 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008739/0.4637, allocations: 4.561 MB / 0.4971 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.099e-05/0.4637, allocations: 7.938 kB / 0.4971 GB, free: 12.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009534/0.4646, allocations: 204.1 kB / 0.4973 GB, free: 12.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001254/0.4659, allocations: 454.9 kB / 0.4978 GB, free: 11.73 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001/0.466, allocations: 35.98 kB / 0.4978 GB, free: 11.69 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009042/0.475, allocations: 8.623 MB / 0.5062 GB, free: 2.52 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.013e-06/0.475, allocations: 11.94 kB / 0.5062 GB, free: 2.508 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005596/0.4806, allocations: 3.104 MB / 0.5093 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001009/0.4816, allocations: 387.8 kB / 0.5096 GB, free: 14.91 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002595/0.4819, allocations: 28 kB / 0.5096 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009372/0.4828, allocations: 87.89 kB / 0.5097 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002662/0.4831, allocations: 96.75 kB / 0.5098 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.44e-05/0.4832, allocations: 40 kB / 0.5099 GB, free: 14.66 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001624/0.4848, allocations: 0.9888 MB / 0.5108 GB, free: 13.68 MB / 430.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.4848, allocations: 0 / 0.5108 GB, free: 13.68 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001981/0.4868, allocations: 460 kB / 0.5113 GB, free: 13.23 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.005907/0.4927, allocations: 3.747 MB / 0.5149 GB, free: 9.383 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004077/0.4968, allocations: 2.158 MB / 0.517 GB, free: 7.168 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.064e-06/0.4968, allocations: 256 / 0.517 GB, free: 7.168 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002514/0.4993, allocations: 1.389 MB / 0.5184 GB, free: 5.727 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00243/0.5017, allocations: 424.7 kB / 0.5188 GB, free: 5.332 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03062/0.5324, allocations: 16.91 MB / 0.5353 GB, free: 3.719 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001775/0.5341, allocations: 1.803 MB / 0.5371 GB, free: 1.883 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001274/0.5354, allocations: 365.6 kB / 0.5374 GB, free: 1.52 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001282/0.5367, allocations: 0.8195 MB / 0.5382 GB, free: 0.6992 MB / 446.1 MB Notification: Performance of SimCode: time 1.092e-06/0.5367, allocations: 4 kB / 0.5382 GB, free: 0.6953 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1008/0.6375, allocations: 42.26 MB / 0.5795 GB, free: 6.848 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.4/14.04, allocations: 9.547 kB / 0.5795 GB, free: 6.84 MB / 494.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.699082417879254]