Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00165/0.00165, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002266/0.002266, allocations: 213 kB / 23.73 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.47/1.47, allocations: 230.5 MB / 257.4 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001946, allocations: 67.89 kB / 377.7 MB, free: 2.812 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.3286, allocations: 53.4 MB / 431.1 MB, free: 6.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01309/0.3417, allocations: 10.13 MB / 441.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007587/0.3493, allocations: 3.71 MB / 445 MB, free: 8.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001962/0.3513, allocations: 79.5 kB / 445.1 MB, free: 8.512 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002101/0.3534, allocations: 0.8233 MB / 445.9 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002631/0.356, allocations: 1.002 MB / 446.9 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00114/0.3571, allocations: 0.511 MB / 447.4 MB, free: 6.164 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003661/0.3608, allocations: 3.234 MB / 450.6 MB, free: 2.918 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002035/0.3628, allocations: 1.419 MB / 452.1 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002039/0.3649, allocations: 1.476 MB / 453.5 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002475/0.3673, allocations: 1.739 MB / 455.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005672/0.3679, allocations: 384 kB / 455.6 MB, free: 13.83 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001171/0.3691, allocations: 0.6089 MB / 456.3 MB, free: 13.22 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001089/0.3702, allocations: 1.083 MB / 457.3 MB, free: 12.14 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001726/0.3719, allocations: 1.4 MB / 458.7 MB, free: 10.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005523/0.3774, allocations: 5.087 MB / 463.8 MB, free: 5.625 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.3774, allocations: 4 kB / 463.8 MB, free: 5.621 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3774, allocations: 4 kB / 463.8 MB, free: 5.617 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.13e-05/0.3775, allocations: 0 / 463.8 MB, free: 5.617 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.007406/0.3849, allocations: 3.503 MB / 467.3 MB, free: 2.062 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.32e-05/0.385, allocations: 15.92 kB / 467.4 MB, free: 2.047 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004965/0.3855, allocations: 366.9 kB / 467.7 MB, free: 1.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001588/0.387, allocations: 462.7 kB / 468.2 MB, free: 1.227 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00361/0.3907, allocations: 1.784 MB / 469.9 MB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001722/0.3908, allocations: 200.9 kB / 470.1 MB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003932/0.3912, allocations: 248 kB / 470.4 MB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005773/0.397, allocations: 3.373 MB / 473.8 MB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.214e-05/0.3971, allocations: 0 / 473.8 MB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002258/0.3973, allocations: 108 kB / 473.9 MB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001415/0.3974, allocations: 120.9 kB / 474 MB, free: 11.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004852/0.4023, allocations: 2.693 MB / 476.7 MB, free: 8.547 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01794/0.4202, allocations: 9.304 MB / 486 MB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002246/0.4225, allocations: 1.236 MB / 487.2 MB, free: 13.67 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001886/0.4243, allocations: 0.9758 MB / 488.2 MB, free: 12.7 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002612/0.4246, allocations: 52.95 kB / 488.2 MB, free: 12.64 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.605e-05/0.4246, allocations: 47.56 kB / 488.3 MB, free: 12.59 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 3.767e-06/0.4247, allocations: 0 / 488.3 MB, free: 12.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=134): time 0.01843/0.4431, allocations: 7.081 MB / 495.4 MB, free: 5.48 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.846e-05/0.4431, allocations: 64.72 kB / 495.4 MB, free: 5.406 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003202/0.4463, allocations: 1.916 MB / 497.3 MB, free: 3.492 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001652/0.4465, allocations: 45.7 kB / 497.4 MB, free: 3.441 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001035/0.4475, allocations: 1.28 MB / 498.7 MB, free: 2.148 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005097/0.4481, allocations: 491.8 kB / 499.2 MB, free: 1.664 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005317/0.4486, allocations: 299.4 kB / 499.4 MB, free: 1.363 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.4487, allocations: 305.1 kB / 499.7 MB, free: 1.062 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001536/0.4502, allocations: 0.8197 MB / 0.4888 GB, free: 248 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001879/0.4521, allocations: 1.308 MB / 0.4901 GB, free: 14.72 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003477/0.4556, allocations: 2.254 MB / 0.4923 GB, free: 12.25 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.256e-05/0.4556, allocations: 4 kB / 0.4923 GB, free: 12.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005269/0.4609, allocations: 2.724 MB / 0.495 GB, free: 9.504 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.633e-05/0.4609, allocations: 14.5 kB / 0.495 GB, free: 9.492 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.217e-05/0.461, allocations: 16 kB / 0.495 GB, free: 9.477 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001072/0.462, allocations: 418.5 kB / 0.4954 GB, free: 9.059 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001512/0.4635, allocations: 395.3 kB / 0.4958 GB, free: 8.672 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006782/0.4703, allocations: 5.553 MB / 0.5012 GB, free: 2.891 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001759/0.4721, allocations: 127.9 kB / 0.5013 GB, free: 2.766 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002239/0.4723, allocations: 71.98 kB / 0.5014 GB, free: 2.695 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.001521/0.4738, allocations: 0.7939 MB / 0.5022 GB, free: 1.891 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005876/0.4744, allocations: 214.6 kB / 0.5024 GB, free: 1.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004531/0.4789, allocations: 2.296 MB / 0.5046 GB, free: 15.36 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-05/0.479, allocations: 23.98 kB / 0.5046 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.385e-05/0.479, allocations: 7.938 kB / 0.5046 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.358e-05/0.479, allocations: 3.984 kB / 0.5046 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009967/0.489, allocations: 4.858 MB / 0.5094 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-05/0.489, allocations: 4 kB / 0.5094 GB, free: 10.34 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001102/0.4901, allocations: 252.2 kB / 0.5096 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001261/0.4913, allocations: 462.1 kB / 0.5101 GB, free: 9.633 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000122/0.4915, allocations: 31.98 kB / 0.5101 GB, free: 9.602 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007968/0.4994, allocations: 6.978 MB / 0.5169 GB, free: 2.281 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.316e-05/0.4994, allocations: 11.88 kB / 0.5169 GB, free: 2.27 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006473/0.5059, allocations: 3.501 MB / 0.5204 GB, free: 14.69 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001267/0.5072, allocations: 378.6 kB / 0.5207 GB, free: 14.32 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004479/0.5076, allocations: 36.11 kB / 0.5207 GB, free: 14.28 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001366/0.509, allocations: 99.89 kB / 0.5208 GB, free: 14.18 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000285/0.5093, allocations: 120.7 kB / 0.521 GB, free: 14.06 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000111/0.5094, allocations: 36 kB / 0.521 GB, free: 14.03 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002363/0.5118, allocations: 1.314 MB / 0.5223 GB, free: 12.72 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5118, allocations: 0 / 0.5223 GB, free: 12.72 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002226/0.514, allocations: 0.543 MB / 0.5228 GB, free: 12.18 MB / 446.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.006942/0.5209, allocations: 4.158 MB / 0.5269 GB, free: 7.93 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004488/0.5254, allocations: 2.278 MB / 0.5291 GB, free: 5.625 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/0.5254, allocations: 8.25 kB / 0.5291 GB, free: 5.617 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002806/0.5282, allocations: 1.443 MB / 0.5305 GB, free: 4.133 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002751/0.531, allocations: 456.1 kB / 0.5309 GB, free: 3.695 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2244/0.7554, allocations: 20.37 MB / 0.5508 GB, free: 94.46 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001371/0.7568, allocations: 1.453 MB / 0.5523 GB, free: 93.41 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001431/0.7582, allocations: 427.5 kB / 0.5527 GB, free: 93.14 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001191/0.7594, allocations: 1.003 MB / 0.5536 GB, free: 92.22 MB / 446.1 MB Notification: Performance of SimCode: time 8.62e-07/0.7594, allocations: 4 kB / 0.5536 GB, free: 92.21 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08865/0.848, allocations: 52.21 MB / 0.6046 GB, free: 40.53 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.61/14.45, allocations: 7.875 kB / 0.6046 GB, free: 40.52 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.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.88434371072799]