Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.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.001273/0.001273, allocations: 112.2 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.001336/0.001336, allocations: 189.9 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.38/1.38, allocations: 225.6 MB / 252.5 MB, free: 13.05 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.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001671/0.001671, allocations: 51.92 kB / 370.5 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2737, allocations: 52.18 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.0145/0.2882, allocations: 11.58 MB / 434.2 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008797/0.297, allocations: 3.874 MB / 438.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002414/0.2994, allocations: 79.5 kB / 438.2 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002737/0.3021, allocations: 0.8655 MB / 439 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003935/0.3061, allocations: 0.998 MB / 440 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001792/0.3079, allocations: 0.5264 MB / 440.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005219/0.3131, allocations: 3.211 MB / 443.8 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003259/0.3163, allocations: 1.473 MB / 445.3 MB, free: 7.848 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002627/0.319, allocations: 1.472 MB / 446.7 MB, free: 6.371 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003538/0.3225, allocations: 1.857 MB / 448.6 MB, free: 4.508 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001135/0.3236, allocations: 388 kB / 449 MB, free: 4.129 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001993/0.3256, allocations: 0.6986 MB / 449.7 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001801/0.3274, allocations: 1.083 MB / 450.7 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003369/0.3308, allocations: 1.723 MB / 452.5 MB, free: 0.6133 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007281/0.3381, allocations: 5.056 MB / 457.5 MB, free: 11.54 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3381, allocations: 0 / 457.5 MB, free: 11.54 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3381, allocations: 4 kB / 457.5 MB, free: 11.54 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001203/0.3382, allocations: 0 / 457.5 MB, free: 11.54 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: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.008733/0.3469, allocations: 3.483 MB / 461 MB, free: 8 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.236e-05/0.347, allocations: 8.031 kB / 461 MB, free: 7.992 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008262/0.3478, allocations: 366.9 kB / 461.4 MB, free: 7.625 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001601/0.3494, allocations: 430.7 kB / 461.8 MB, free: 7.203 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003946/0.3534, allocations: 1.772 MB / 463.6 MB, free: 5.391 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001863/0.3536, allocations: 189 kB / 463.8 MB, free: 5.203 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000572/0.3541, allocations: 259.9 kB / 464 MB, free: 4.949 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006881/0.361, allocations: 3.251 MB / 467.3 MB, free: 1.621 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.377e-05/0.3611, allocations: 0 / 467.3 MB, free: 1.621 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003757/0.3615, allocations: 111.9 kB / 467.4 MB, free: 1.512 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001596/0.3616, allocations: 116.9 kB / 467.5 MB, free: 1.395 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005795/0.3674, allocations: 2.701 MB / 470.2 MB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02111/0.3885, allocations: 10.12 MB / 480.3 MB, free: 4.219 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002411/0.3909, allocations: 1.247 MB / 481.5 MB, free: 2.973 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001879/0.3928, allocations: 0.9805 MB / 482.5 MB, free: 1.992 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002795/0.3931, allocations: 52.95 kB / 482.6 MB, free: 1.941 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.133e-05/0.3932, allocations: 51.55 kB / 482.6 MB, free: 1.879 MB / 382.1 MB Notification: Performance of pre-optimization done (n=115): time 4.609e-06/0.3932, allocations: 0 / 482.6 MB, free: 1.879 MB / 382.1 MB Notification: Performance of matching and sorting (n=134): time 0.01873/0.4119, allocations: 7.075 MB / 489.7 MB, free: 10.78 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.346e-05/0.4119, allocations: 64.72 kB / 489.8 MB, free: 10.71 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003561/0.4155, allocations: 1.865 MB / 491.6 MB, free: 8.844 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001728/0.4157, allocations: 53.7 kB / 491.7 MB, free: 8.785 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001157/0.4168, allocations: 1.276 MB / 493 MB, free: 7.496 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005467/0.4174, allocations: 491.8 kB / 493.4 MB, free: 7.012 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006388/0.418, allocations: 307.4 kB / 493.7 MB, free: 6.703 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.4181, allocations: 301.1 kB / 494 MB, free: 6.406 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001527/0.4197, allocations: 0.8159 MB / 494.8 MB, free: 5.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001866/0.4215, allocations: 1.304 MB / 496.2 MB, free: 4.07 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003486/0.425, allocations: 2.254 MB / 498.4 MB, free: 1.602 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.608e-05/0.425, allocations: 8 kB / 498.4 MB, free: 1.594 MB / 398.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005505/0.4305, allocations: 2.72 MB / 0.4894 GB, free: 14.86 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.726e-05/0.4306, allocations: 12 kB / 0.4894 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.43e-05/0.4306, allocations: 16 kB / 0.4894 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001097/0.4317, allocations: 418 kB / 0.4898 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001502/0.4332, allocations: 403.3 kB / 0.4902 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00677/0.44, allocations: 5.585 MB / 0.4957 GB, free: 8.203 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001798/0.4418, allocations: 132 kB / 0.4958 GB, free: 8.074 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002265/0.442, allocations: 68 kB / 0.4958 GB, free: 8.008 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (187): * Single equations (assignments): 182 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(3,12,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001569/0.4436, allocations: 0.7941 MB / 0.4966 GB, free: 7.203 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000589/0.4442, allocations: 202.7 kB / 0.4968 GB, free: 7.004 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004568/0.4488, allocations: 2.316 MB / 0.4991 GB, free: 4.66 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.48e-05/0.4488, allocations: 16 kB / 0.4991 GB, free: 4.645 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.506e-05/0.4488, allocations: 7.938 kB / 0.4991 GB, free: 4.637 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.542e-05/0.4488, allocations: 7.969 kB / 0.4991 GB, free: 4.629 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01068/0.4595, allocations: 5.146 MB / 0.5041 GB, free: 15.36 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.739e-05/0.4595, allocations: 8 kB / 0.5041 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001093/0.4606, allocations: 255.6 kB / 0.5044 GB, free: 15.1 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001307/0.4619, allocations: 465.5 kB / 0.5048 GB, free: 14.64 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001315/0.462, allocations: 43.98 kB / 0.5049 GB, free: 14.6 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00818/0.4702, allocations: 7.021 MB / 0.5117 GB, free: 7.23 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.784e-06/0.4702, allocations: 11.88 kB / 0.5117 GB, free: 7.219 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006815/0.4771, allocations: 3.497 MB / 0.5152 GB, free: 3.641 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001411/0.4785, allocations: 382.6 kB / 0.5155 GB, free: 3.266 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006098/0.4791, allocations: 35.98 kB / 0.5155 GB, free: 3.23 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001542/0.4806, allocations: 99.89 kB / 0.5156 GB, free: 3.133 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003035/0.4809, allocations: 112.7 kB / 0.5158 GB, free: 3.02 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001212/0.481, allocations: 43.98 kB / 0.5158 GB, free: 2.977 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002688/0.4837, allocations: 1.302 MB / 0.5171 GB, free: 1.684 MB / 430.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.4837, allocations: 0 / 0.5171 GB, free: 1.684 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002575/0.4863, allocations: 0.5391 MB / 0.5176 GB, free: 1.145 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * 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 (115): * Single equations (assignments): 110 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 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%), (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.007109/0.4934, allocations: 4.158 MB / 0.5217 GB, free: 12.89 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00456/0.498, allocations: 2.282 MB / 0.5239 GB, free: 10.58 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.748e-06/0.498, allocations: 0 / 0.5239 GB, free: 10.58 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002733/0.5007, allocations: 1.452 MB / 0.5253 GB, free: 9.094 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003183/0.5039, allocations: 455.1 kB / 0.5257 GB, free: 8.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2673/0.7712, allocations: 20.31 MB / 0.5456 GB, free: 104 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001294/0.7724, allocations: 2.009 MB / 0.5475 GB, free: 103.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001131/0.7736, allocations: 430.4 kB / 0.5479 GB, free: 103 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001/0.7746, allocations: 0.992 MB / 0.5489 GB, free: 102.2 MB / 446.1 MB Notification: Performance of SimCode: time 9.11e-07/0.7746, allocations: 0 / 0.5489 GB, free: 102.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09022/0.8648, allocations: 50.46 MB / 0.5982 GB, free: 53.22 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.38/16.25, allocations: 2.062 kB / 0.5982 GB, free: 53.22 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 23.881142653990537]