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.00174/0.00174, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.002238/0.002238, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.463/1.463, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.001503/0.001503, allocations: 43.94 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1068, allocations: 53.34 MB / 426.3 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.2139/0.3207, allocations: 11.56 MB / 437.9 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007783/0.3285, allocations: 3.936 MB / 441.8 MB, free: 2.938 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003077/0.3316, allocations: 78.44 kB / 441.9 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002965/0.3345, allocations: 0.8671 MB / 442.8 MB, free: 2.461 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004073/0.3386, allocations: 0.9938 MB / 443.8 MB, free: 1.816 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001491/0.3401, allocations: 0.5137 MB / 444.3 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004982/0.3451, allocations: 3.23 MB / 447.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003167/0.3482, allocations: 1.853 MB / 449.4 MB, free: 15.01 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003378/0.3516, allocations: 1.475 MB / 450.8 MB, free: 14.3 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004078/0.3557, allocations: 1.856 MB / 452.7 MB, free: 13.45 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001088/0.3568, allocations: 387.5 kB / 453.1 MB, free: 13.45 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001854/0.3586, allocations: 0.6259 MB / 453.7 MB, free: 13.37 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001365/0.36, allocations: 1.087 MB / 454.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003106/0.3631, allocations: 1.727 MB / 456.5 MB, free: 11.63 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007348/0.3705, allocations: 5.074 MB / 461.6 MB, free: 8.492 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.3705, allocations: 0 / 461.6 MB, free: 8.492 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.3705, allocations: 0 / 461.6 MB, free: 8.492 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000161/0.3706, allocations: 0 / 461.6 MB, free: 8.492 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.009206/0.3798, allocations: 3.578 MB / 465.2 MB, free: 6.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/0.3799, allocations: 8.625 kB / 465.2 MB, free: 6.02 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006194/0.3805, allocations: 362.9 kB / 465.5 MB, free: 5.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001912/0.3824, allocations: 457.5 kB / 466 MB, free: 5.539 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003966/0.3864, allocations: 1.874 MB / 467.8 MB, free: 4.199 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001818/0.3866, allocations: 194.4 kB / 468 MB, free: 4.105 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004618/0.387, allocations: 256.1 kB / 468.3 MB, free: 4.016 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006346/0.3934, allocations: 3.243 MB / 471.5 MB, free: 2.098 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.019e-05/0.3934, allocations: 1.594 kB / 471.5 MB, free: 2.098 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002537/0.3937, allocations: 110.4 kB / 471.6 MB, free: 2.012 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001372/0.3938, allocations: 116.5 kB / 471.8 MB, free: 1.992 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005067/0.3989, allocations: 2.704 MB / 474.5 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02022/0.4191, allocations: 10.28 MB / 484.7 MB, free: 6.012 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002601/0.4217, allocations: 1.703 MB / 486.4 MB, free: 4.199 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001888/0.4236, allocations: 0.983 MB / 487.4 MB, free: 3.219 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003213/0.4239, allocations: 207.2 kB / 487.6 MB, free: 2.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.96e-05/0.424, allocations: 47.56 kB / 487.7 MB, free: 2.926 MB / 382.1 MB Notification: Performance of pre-optimization done (n=115): time 3.176e-06/0.424, allocations: 0 / 487.7 MB, free: 2.926 MB / 382.1 MB Notification: Performance of matching and sorting (n=134): time 0.01914/0.4431, allocations: 7.444 MB / 495.1 MB, free: 11.36 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.365e-05/0.4432, allocations: 68.66 kB / 495.2 MB, free: 11.28 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003085/0.4462, allocations: 1.889 MB / 497.1 MB, free: 9.395 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001365/0.4464, allocations: 53.7 kB / 497.1 MB, free: 9.336 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001055/0.4474, allocations: 1.276 MB / 498.4 MB, free: 8.047 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004542/0.4479, allocations: 491.8 kB / 498.9 MB, free: 7.562 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005124/0.4484, allocations: 303.4 kB / 499.2 MB, free: 7.258 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.4485, allocations: 305.1 kB / 499.5 MB, free: 6.957 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001469/0.45, allocations: 0.8159 MB / 0.4886 GB, free: 6.141 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001892/0.4519, allocations: 1.308 MB / 0.4898 GB, free: 4.617 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00346/0.4554, allocations: 2.254 MB / 0.492 GB, free: 2.148 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.648e-06/0.4554, allocations: 8 kB / 0.4921 GB, free: 2.141 MB / 398.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005245/0.4606, allocations: 2.792 MB / 0.4948 GB, free: 15.31 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.793e-05/0.4606, allocations: 12 kB / 0.4948 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.845e-05/0.4607, allocations: 16 kB / 0.4948 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001067/0.4617, allocations: 418.5 kB / 0.4952 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001526/0.4633, allocations: 403.3 kB / 0.4956 GB, free: 14.47 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006882/0.4701, allocations: 5.789 MB / 0.5012 GB, free: 8.414 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002/0.4721, allocations: 135.9 kB / 0.5014 GB, free: 8.281 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001924/0.4723, allocations: 68 kB / 0.5014 GB, free: 8.215 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.0015/0.4738, allocations: 0.7939 MB / 0.5022 GB, free: 7.41 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005174/0.4744, allocations: 206.7 kB / 0.5024 GB, free: 7.207 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004605/0.479, allocations: 2.391 MB / 0.5047 GB, free: 4.777 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.88e-05/0.479, allocations: 16 kB / 0.5048 GB, free: 4.762 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.358e-05/0.479, allocations: 11.92 kB / 0.5048 GB, free: 4.75 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.362e-05/0.479, allocations: 3.984 kB / 0.5048 GB, free: 4.746 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01019/0.4892, allocations: 5.262 MB / 0.5099 GB, free: 15.33 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.065e-05/0.4892, allocations: 8.062 kB / 0.5099 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001104/0.4903, allocations: 247.6 kB / 0.5102 GB, free: 15.08 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0013/0.4916, allocations: 459.8 kB / 0.5106 GB, free: 14.62 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001102/0.4917, allocations: 39.97 kB / 0.5106 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008326/0.5001, allocations: 7.344 MB / 0.5178 GB, free: 6.828 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.025e-05/0.5001, allocations: 15.97 kB / 0.5178 GB, free: 6.812 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006529/0.5066, allocations: 3.56 MB / 0.5213 GB, free: 3.148 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001361/0.508, allocations: 455.7 kB / 0.5217 GB, free: 2.684 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003445/0.5083, allocations: 43.86 kB / 0.5218 GB, free: 2.641 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001199/0.5095, allocations: 99.84 kB / 0.5219 GB, free: 2.543 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002931/0.5098, allocations: 112.7 kB / 0.522 GB, free: 2.434 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001137/0.5099, allocations: 47.97 kB / 0.522 GB, free: 2.387 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002205/0.5121, allocations: 1.303 MB / 0.5233 GB, free: 1.094 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5121, allocations: 0 / 0.5233 GB, free: 1.094 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002109/0.5142, allocations: 0.5469 MB / 0.5238 GB, free: 0.5469 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.006603/0.5208, allocations: 4.232 MB / 0.528 GB, free: 12.2 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004421/0.5253, allocations: 2.349 MB / 0.5303 GB, free: 9.812 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/0.5253, allocations: 0 / 0.5303 GB, free: 9.812 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00274/0.528, allocations: 1.448 MB / 0.5317 GB, free: 8.324 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002593/0.5306, allocations: 459 kB / 0.5321 GB, free: 7.887 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03607/0.5667, allocations: 20.52 MB / 0.5522 GB, free: 2.562 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002168/0.5688, allocations: 2.01 MB / 0.5541 GB, free: 0.5195 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001595/0.5704, allocations: 439.7 kB / 0.5545 GB, free: 88 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001592/0.572, allocations: 0.9992 MB / 0.5555 GB, free: 15.08 MB / 478.1 MB Notification: Performance of SimCode: time 1.082e-06/0.572, allocations: 0 / 0.5555 GB, free: 15.08 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1366/0.7086, allocations: 49.34 MB / 0.6037 GB, free: 14.17 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.9/14.61, allocations: 0 / 0.6037 GB, free: 14.17 MB / 0.5137 GB " [Timeout remaining time 645] (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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_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.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_4.1.0_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_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv. Warning: Get data of variable constantSpeed.phi from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv failed! Error: Could not read variable smee.is[1] in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv. Warning: Get data of variable smee.is[1] from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv failed! Error: Could not read variable smee.is[2] in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv. Warning: Get data of variable smee.is[2] from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 18.21416331799992]