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.001899/0.001899, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001476/0.001476, allocations: 205.7 kB / 23.72 MB, free: 4.391 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.543/1.543, allocations: 230.5 MB / 257.4 MB, free: 7.738 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.001955/0.001955, allocations: 63.89 kB / 377.7 MB, free: 2.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.258/0.26, allocations: 53.41 MB / 431.1 MB, free: 6.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01367/0.2736, allocations: 10.13 MB / 441.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007481/0.2811, allocations: 3.702 MB / 445 MB, free: 8.559 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001723/0.2828, allocations: 79.5 kB / 445.1 MB, free: 8.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00244/0.2853, allocations: 0.831 MB / 445.9 MB, free: 7.645 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003643/0.2889, allocations: 0.994 MB / 446.9 MB, free: 6.645 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001594/0.2905, allocations: 0.5149 MB / 447.4 MB, free: 6.129 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004579/0.2951, allocations: 3.233 MB / 450.6 MB, free: 2.887 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002432/0.2975, allocations: 1.422 MB / 452.1 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002584/0.3001, allocations: 1.48 MB / 453.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003108/0.3032, allocations: 1.735 MB / 455.3 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009647/0.3042, allocations: 388 kB / 455.6 MB, free: 13.79 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00196/0.3061, allocations: 0.6089 MB / 456.3 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001589/0.3077, allocations: 1.091 MB / 457.3 MB, free: 12.09 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002452/0.3102, allocations: 1.389 MB / 458.7 MB, free: 10.7 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007117/0.3173, allocations: 5.095 MB / 463.8 MB, free: 5.582 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.782e-06/0.3173, allocations: 4 kB / 463.8 MB, free: 5.578 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3173, allocations: 0 / 463.8 MB, free: 5.578 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001651/0.3175, allocations: 0 / 463.8 MB, free: 5.578 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.008949/0.3264, allocations: 3.503 MB / 467.3 MB, free: 2.023 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.261e-05/0.3265, allocations: 11.98 kB / 467.4 MB, free: 2.012 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000623/0.3271, allocations: 366.9 kB / 467.7 MB, free: 1.645 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001787/0.3289, allocations: 462.7 kB / 468.2 MB, free: 1.191 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004256/0.3331, allocations: 1.791 MB / 470 MB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001919/0.3333, allocations: 189 kB / 470.1 MB, free: 15.17 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005956/0.3339, allocations: 252 kB / 470.4 MB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006519/0.3404, allocations: 3.376 MB / 473.8 MB, free: 11.44 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.061e-05/0.3405, allocations: 4 kB / 473.8 MB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002523/0.3408, allocations: 108 kB / 473.9 MB, free: 11.33 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001531/0.3409, allocations: 116.9 kB / 474 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005298/0.3462, allocations: 2.697 MB / 476.7 MB, free: 8.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01795/0.3642, allocations: 9.292 MB / 486 MB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002237/0.3664, allocations: 1.237 MB / 487.2 MB, free: 13.63 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001864/0.3683, allocations: 0.9873 MB / 488.2 MB, free: 12.65 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002324/0.3685, allocations: 48.97 kB / 488.2 MB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.943e-05/0.3685, allocations: 47.56 kB / 488.3 MB, free: 12.55 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 3.587e-06/0.3685, allocations: 0 / 488.3 MB, free: 12.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=134): time 0.01845/0.387, allocations: 7.077 MB / 495.4 MB, free: 5.445 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.904e-05/0.387, allocations: 68.7 kB / 495.4 MB, free: 5.367 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003004/0.3901, allocations: 1.916 MB / 497.4 MB, free: 3.453 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001543/0.3902, allocations: 49.69 kB / 497.4 MB, free: 3.398 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001041/0.3912, allocations: 1.276 MB / 498.7 MB, free: 2.109 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005026/0.3918, allocations: 487.8 kB / 499.2 MB, free: 1.629 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005551/0.3923, allocations: 303.4 kB / 499.4 MB, free: 1.324 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.3925, allocations: 305.1 kB / 499.7 MB, free: 1.023 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001567/0.394, allocations: 0.8197 MB / 0.4888 GB, free: 208 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001947/0.396, allocations: 1.308 MB / 0.4901 GB, free: 14.68 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003602/0.3996, allocations: 2.254 MB / 0.4923 GB, free: 12.21 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.235e-05/0.3996, allocations: 7.938 kB / 0.4923 GB, free: 12.2 MB / 414.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005404/0.405, allocations: 2.72 MB / 0.495 GB, free: 9.465 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.111e-05/0.405, allocations: 15.94 kB / 0.495 GB, free: 9.449 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.84e-05/0.4051, allocations: 16 kB / 0.495 GB, free: 9.434 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001075/0.4061, allocations: 418.5 kB / 0.4954 GB, free: 9.016 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001565/0.4077, allocations: 403.3 kB / 0.4958 GB, free: 8.621 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006956/0.4146, allocations: 5.541 MB / 0.5012 GB, free: 2.852 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001874/0.4165, allocations: 135.9 kB / 0.5013 GB, free: 2.719 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002/0.4167, allocations: 68 kB / 0.5014 GB, free: 2.652 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.001431/0.4182, allocations: 0.7822 MB / 0.5022 GB, free: 1.859 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004722/0.4186, allocations: 210.7 kB / 0.5024 GB, free: 1.652 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00453/0.4232, allocations: 2.316 MB / 0.5046 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.545e-05/0.4232, allocations: 16 kB / 0.5046 GB, free: 15.29 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/0.4232, allocations: 11.94 kB / 0.5046 GB, free: 15.28 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.46e-05/0.4232, allocations: 7.969 kB / 0.5047 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009627/0.4329, allocations: 4.85 MB / 0.5094 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.151e-05/0.4329, allocations: 4 kB / 0.5094 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001138/0.434, allocations: 252.2 kB / 0.5096 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001267/0.4353, allocations: 454.1 kB / 0.5101 GB, free: 9.602 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000108/0.4354, allocations: 43.97 kB / 0.5101 GB, free: 9.559 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008162/0.4436, allocations: 6.97 MB / 0.5169 GB, free: 2.246 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.007e-06/0.4436, allocations: 11.88 kB / 0.5169 GB, free: 2.234 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00676/0.4503, allocations: 3.504 MB / 0.5204 GB, free: 14.65 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00135/0.4517, allocations: 382.6 kB / 0.5207 GB, free: 14.27 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000355/0.452, allocations: 31.98 kB / 0.5207 GB, free: 14.24 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001287/0.4533, allocations: 99.89 kB / 0.5208 GB, free: 14.14 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003103/0.4536, allocations: 112.7 kB / 0.521 GB, free: 14.03 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001168/0.4537, allocations: 43.98 kB / 0.521 GB, free: 13.99 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002339/0.4561, allocations: 1.311 MB / 0.5223 GB, free: 12.69 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4561, allocations: 0 / 0.5223 GB, free: 12.69 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002195/0.4583, allocations: 0.543 MB / 0.5228 GB, free: 12.14 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.006838/0.4651, allocations: 4.166 MB / 0.5269 GB, free: 7.883 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004543/0.4697, allocations: 2.275 MB / 0.5291 GB, free: 5.582 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/0.4697, allocations: 0 / 0.5291 GB, free: 5.582 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002827/0.4725, allocations: 1.443 MB / 0.5305 GB, free: 4.098 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002586/0.4751, allocations: 463.5 kB / 0.5309 GB, free: 3.656 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2332/0.7083, allocations: 20.38 MB / 0.5508 GB, free: 94.13 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001301/0.7096, allocations: 1.454 MB / 0.5523 GB, free: 93.08 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001291/0.7109, allocations: 432.1 kB / 0.5527 GB, free: 92.81 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00108/0.712, allocations: 0.9942 MB / 0.5536 GB, free: 91.89 MB / 446.1 MB Notification: Performance of SimCode: time 1.353e-06/0.712, allocations: 0 / 0.5536 GB, free: 91.89 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1255/0.8374, allocations: 52.21 MB / 0.6046 GB, free: 40.21 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.47/14.31, allocations: 14.62 kB / 0.6046 GB, free: 40.2 MB / 446.1 MB " [Timeout remaining time 646] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.csv","/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] "Error: Could not read variable constantSpeed.phi in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv. Warning: Get data of variable constantSpeed.phi from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv failed! Error: Could not read variable smee.is[1] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv. Warning: Get data of variable smee.is[1] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv failed! Error: Could not read variable smee.is[2] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv. Warning: Get data of variable smee.is[2] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.110408342443407]