Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.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.001267/0.001267, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001416/0.001416, allocations: 211.3 kB / 23.73 MB, free: 4.523 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.407/1.407, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.SMEE_Generator,fileNamePrefix="Modelica_4_1_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_1_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.001488/0.001488, allocations: 43.92 kB / 377.7 MB, free: 2.926 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2607, allocations: 53.37 MB / 431.1 MB, free: 6.605 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01347/0.2742, allocations: 10.13 MB / 441.2 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00731/0.2815, allocations: 3.714 MB / 444.9 MB, free: 8.715 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00142/0.2829, allocations: 71.56 kB / 445 MB, free: 8.645 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001948/0.2849, allocations: 0.8309 MB / 445.8 MB, free: 7.809 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002493/0.2874, allocations: 1.002 MB / 446.8 MB, free: 6.801 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001058/0.2884, allocations: 0.5149 MB / 447.4 MB, free: 6.285 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003481/0.2919, allocations: 3.23 MB / 450.6 MB, free: 3.043 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001977/0.2939, allocations: 1.469 MB / 452.1 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001873/0.2957, allocations: 1.487 MB / 453.5 MB, free: 16 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002463/0.2982, allocations: 1.864 MB / 455.4 MB, free: 14.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005033/0.2987, allocations: 388 kB / 455.8 MB, free: 13.77 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001037/0.2997, allocations: 0.6167 MB / 456.4 MB, free: 13.15 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001098/0.3008, allocations: 1.087 MB / 457.5 MB, free: 12.06 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001583/0.3024, allocations: 1.396 MB / 458.9 MB, free: 10.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005156/0.3076, allocations: 5.095 MB / 464 MB, free: 5.543 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3076, allocations: 0 / 464 MB, free: 5.543 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3076, allocations: 0 / 464 MB, free: 5.543 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.691e-05/0.3077, allocations: 0 / 464 MB, free: 5.543 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.007049/0.3147, allocations: 3.505 MB / 467.5 MB, free: 1.988 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.192e-05/0.3147, allocations: 12.03 kB / 467.5 MB, free: 1.977 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000469/0.3152, allocations: 366.9 kB / 467.9 MB, free: 1.609 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001612/0.3168, allocations: 454.7 kB / 468.3 MB, free: 1.164 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003568/0.3204, allocations: 1.788 MB / 470.1 MB, free: 15.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001629/0.3206, allocations: 193 kB / 470.3 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004012/0.321, allocations: 255.9 kB / 470.5 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005573/0.3265, allocations: 3.373 MB / 473.9 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-05/0.3266, allocations: 7.938 kB / 473.9 MB, free: 11.41 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002396/0.3268, allocations: 100 kB / 474 MB, free: 11.31 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001444/0.327, allocations: 116.9 kB / 474.1 MB, free: 11.19 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004723/0.3317, allocations: 2.701 MB / 476.8 MB, free: 8.477 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0162/0.3479, allocations: 9.292 MB / 486.1 MB, free: 14.84 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002122/0.35, allocations: 1.249 MB / 487.4 MB, free: 13.6 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001775/0.3518, allocations: 0.9719 MB / 488.3 MB, free: 12.63 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002274/0.352, allocations: 52.95 kB / 488.4 MB, free: 12.58 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.202e-05/0.3521, allocations: 47.56 kB / 488.4 MB, free: 12.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 3.536e-06/0.3521, allocations: 4 kB / 488.4 MB, free: 12.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=134): time 0.01794/0.37, allocations: 7.073 MB / 495.5 MB, free: 5.414 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.275e-05/0.3701, allocations: 68.72 kB / 495.6 MB, free: 5.336 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002939/0.373, allocations: 1.912 MB / 497.5 MB, free: 3.426 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001141/0.3731, allocations: 53.7 kB / 497.5 MB, free: 3.367 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00104/0.3742, allocations: 1.28 MB / 498.8 MB, free: 2.074 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004445/0.3746, allocations: 495.7 kB / 499.3 MB, free: 1.586 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000512/0.3751, allocations: 299.4 kB / 499.6 MB, free: 1.285 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.3752, allocations: 301.1 kB / 499.9 MB, free: 0.9883 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001424/0.3767, allocations: 0.8159 MB / 0.489 GB, free: 176 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001869/0.3785, allocations: 1.312 MB / 0.4902 GB, free: 14.64 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003385/0.3819, allocations: 2.254 MB / 0.4925 GB, free: 12.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.149e-05/0.3819, allocations: 8 kB / 0.4925 GB, free: 12.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005081/0.387, allocations: 2.716 MB / 0.4951 GB, free: 9.434 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.812e-05/0.387, allocations: 12 kB / 0.4951 GB, free: 9.422 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.142e-05/0.3871, allocations: 12 kB / 0.4951 GB, free: 9.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00104/0.3881, allocations: 422.5 kB / 0.4955 GB, free: 8.988 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001538/0.3896, allocations: 403.3 kB / 0.4959 GB, free: 8.594 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00682/0.3965, allocations: 5.553 MB / 0.5013 GB, free: 2.812 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001757/0.3982, allocations: 119.9 kB / 0.5015 GB, free: 2.695 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001588/0.3984, allocations: 76.14 kB / 0.5015 GB, free: 2.621 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.001404/0.3998, allocations: 0.7861 MB / 0.5023 GB, free: 1.824 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004164/0.4002, allocations: 210.7 kB / 0.5025 GB, free: 1.617 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0043/0.4045, allocations: 2.308 MB / 0.5048 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.348e-05/0.4045, allocations: 16 kB / 0.5048 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.4045, allocations: 7.938 kB / 0.5048 GB, free: 15.26 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.434e-05/0.4046, allocations: 7.969 kB / 0.5048 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009385/0.4139, allocations: 4.862 MB / 0.5095 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/0.4139, allocations: 4 kB / 0.5095 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001132/0.4151, allocations: 251.6 kB / 0.5098 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001229/0.4163, allocations: 450.3 kB / 0.5102 GB, free: 9.574 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001071/0.4164, allocations: 39.98 kB / 0.5102 GB, free: 9.535 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007766/0.4242, allocations: 6.974 MB / 0.5171 GB, free: 2.219 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.683e-06/0.4242, allocations: 11.88 kB / 0.5171 GB, free: 2.207 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006047/0.4302, allocations: 3.508 MB / 0.5205 GB, free: 14.62 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001141/0.4314, allocations: 378.6 kB / 0.5209 GB, free: 14.25 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002779/0.4317, allocations: 35.98 kB / 0.5209 GB, free: 14.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001161/0.4328, allocations: 95.89 kB / 0.521 GB, free: 14.12 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002694/0.4331, allocations: 116.7 kB / 0.5211 GB, free: 14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001043/0.4332, allocations: 43.98 kB / 0.5211 GB, free: 13.96 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002002/0.4352, allocations: 1.307 MB / 0.5224 GB, free: 12.66 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4352, allocations: 0 / 0.5224 GB, free: 12.66 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001797/0.437, allocations: 0.5469 MB / 0.5229 GB, free: 12.11 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.006355/0.4433, allocations: 4.162 MB / 0.527 GB, free: 7.848 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00416/0.4475, allocations: 2.273 MB / 0.5292 GB, free: 5.551 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.79e-06/0.4475, allocations: 0 / 0.5292 GB, free: 5.551 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002599/0.4501, allocations: 1.448 MB / 0.5306 GB, free: 4.062 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002251/0.4524, allocations: 444.6 kB / 0.5311 GB, free: 3.633 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2406/0.6929, allocations: 20.39 MB / 0.551 GB, free: 94.36 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001234/0.6942, allocations: 1.449 MB / 0.5524 GB, free: 93.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001147/0.6953, allocations: 431.6 kB / 0.5528 GB, free: 93.04 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009878/0.6963, allocations: 0.9978 MB / 0.5538 GB, free: 92.11 MB / 446.1 MB Notification: Performance of SimCode: time 9.62e-07/0.6963, allocations: 3.656 kB / 0.5538 GB, free: 92.11 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09278/0.7891, allocations: 52.85 MB / 0.6054 GB, free: 39.86 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.85/13.64, allocations: 5.969 kB / 0.6054 GB, free: 39.86 MB / 446.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator_fmu --startTime=0 --stopTime=30 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 20.918337234004866]