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.001668/0.001668, allocations: 120.8 kB / 17.74 MB, free: 5.309 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.001882/0.001882, allocations: 186.9 kB / 20.68 MB, free: 2.383 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.439/1.439, allocations: 222.9 MB / 246.4 MB, free: 4.199 MB / 190.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.001436/0.001436, allocations: 47.92 kB / 357.5 MB, free: 8.812 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09444/0.09589, allocations: 49.44 MB / 406.9 MB, free: 7.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01356/0.1095, allocations: 11.47 MB / 418.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007345/0.1169, allocations: 3.865 MB / 422.3 MB, free: 7.93 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001726/0.1187, allocations: 63.75 kB / 422.3 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002387/0.1211, allocations: 0.8268 MB / 423.2 MB, free: 7.031 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00339/0.1245, allocations: 0.9472 MB / 424.1 MB, free: 6.078 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001639/0.1262, allocations: 0.5032 MB / 424.6 MB, free: 5.574 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004809/0.131, allocations: 3.211 MB / 427.8 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2146/0.3456, allocations: 2.578 MB / 430.4 MB, free: 6.645 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002523/0.3482, allocations: 1.423 MB / 431.8 MB, free: 6.547 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002954/0.3511, allocations: 1.817 MB / 433.7 MB, free: 6.254 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001046/0.3522, allocations: 386.1 kB / 434 MB, free: 6.254 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002205/0.3544, allocations: 0.619 MB / 434.6 MB, free: 6.254 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001536/0.356, allocations: 1.069 MB / 435.7 MB, free: 6.141 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002624/0.3586, allocations: 1.721 MB / 437.4 MB, free: 5.691 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00767/0.3663, allocations: 5.065 MB / 442.5 MB, free: 5.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.506e-06/0.3664, allocations: 0 / 442.5 MB, free: 5.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.3664, allocations: 0 / 442.5 MB, free: 5.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002358/0.3666, allocations: 1.375 kB / 442.5 MB, free: 5.07 MB / 350.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.01059/0.3772, allocations: 3.567 MB / 446.1 MB, free: 3.566 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.302e-05/0.3773, allocations: 8.938 kB / 446.1 MB, free: 3.566 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009499/0.3783, allocations: 364.5 kB / 446.4 MB, free: 3.516 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001767/0.38, allocations: 426.8 kB / 446.9 MB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003968/0.384, allocations: 1.845 MB / 448.7 MB, free: 2.812 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001638/0.3842, allocations: 189.9 kB / 448.9 MB, free: 2.805 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006134/0.3848, allocations: 257.9 kB / 449.1 MB, free: 2.797 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006923/0.3918, allocations: 3.248 MB / 452.4 MB, free: 2.516 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.118e-05/0.3919, allocations: 3.219 kB / 452.4 MB, free: 2.516 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003348/0.3922, allocations: 104.4 kB / 452.5 MB, free: 2.516 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001838/0.3924, allocations: 116.3 kB / 452.6 MB, free: 2.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006727/0.3992, allocations: 2.706 MB / 455.3 MB, free: 1.449 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02217/0.4214, allocations: 10.29 MB / 465.6 MB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002447/0.4239, allocations: 1.786 MB / 467.4 MB, free: 8.875 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001786/0.4257, allocations: 1.046 MB / 468.4 MB, free: 8.375 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003172/0.426, allocations: 203.1 kB / 468.6 MB, free: 8.176 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.622e-05/0.4261, allocations: 47.06 kB / 468.7 MB, free: 8.129 MB / 366.1 MB Notification: Performance of pre-optimization done (n=115): time 3.607e-06/0.4261, allocations: 0.7812 kB / 468.7 MB, free: 8.129 MB / 366.1 MB Notification: Performance of matching and sorting (n=134): time 0.01954/0.4456, allocations: 7.468 MB / 476.1 MB, free: 1.641 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.698e-05/0.4458, allocations: 64.72 kB / 476.2 MB, free: 1.562 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003556/0.4493, allocations: 1.88 MB / 478.1 MB, free: 15.69 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003026/0.4496, allocations: 45.7 kB / 478.1 MB, free: 15.64 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001096/0.4507, allocations: 1.275 MB / 479.4 MB, free: 14.35 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005947/0.4514, allocations: 493 kB / 479.9 MB, free: 13.88 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005608/0.4519, allocations: 303.4 kB / 480.2 MB, free: 13.57 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.4521, allocations: 301.1 kB / 480.5 MB, free: 13.28 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001664/0.4537, allocations: 0.812 MB / 481.3 MB, free: 12.46 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002047/0.4558, allocations: 1.314 MB / 482.6 MB, free: 10.95 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003656/0.4595, allocations: 2.249 MB / 484.8 MB, free: 8.543 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.757e-05/0.4595, allocations: 4 kB / 484.8 MB, free: 8.539 MB / 382.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005741/0.4653, allocations: 2.813 MB / 487.7 MB, free: 5.793 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.452e-05/0.4653, allocations: 12 kB / 487.7 MB, free: 5.781 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.323e-05/0.4654, allocations: 16 kB / 487.7 MB, free: 5.766 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001125/0.4665, allocations: 414.5 kB / 488.1 MB, free: 5.352 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001679/0.4682, allocations: 403.7 kB / 488.5 MB, free: 4.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007053/0.4753, allocations: 5.791 MB / 494.3 MB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002049/0.4774, allocations: 127.8 kB / 494.4 MB, free: 14.83 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000228/0.4776, allocations: 74.61 kB / 494.5 MB, free: 14.76 MB / 398.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.001663/0.4793, allocations: 0.7865 MB / 495.3 MB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005643/0.4799, allocations: 206.7 kB / 495.5 MB, free: 13.78 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004569/0.4844, allocations: 2.389 MB / 497.9 MB, free: 11.36 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.415e-05/0.4845, allocations: 12 kB / 497.9 MB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.387e-06/0.4845, allocations: 8 kB / 497.9 MB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.011e-05/0.4845, allocations: 13.97 kB / 497.9 MB, free: 11.32 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009601/0.4941, allocations: 5.268 MB / 0.4914 GB, free: 5.996 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/0.4942, allocations: 4 kB / 0.4914 GB, free: 5.992 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001128/0.4953, allocations: 253.7 kB / 0.4916 GB, free: 5.758 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00128/0.4966, allocations: 465.1 kB / 0.4921 GB, free: 5.297 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001379/0.4968, allocations: 39.97 kB / 0.4921 GB, free: 5.258 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007999/0.5048, allocations: 7.324 MB / 0.4992 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.5048, allocations: 10.62 kB / 0.4993 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006461/0.5113, allocations: 3.58 MB / 0.5027 GB, free: 9.883 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001289/0.5126, allocations: 469.7 kB / 0.5032 GB, free: 9.406 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000475/0.5131, allocations: 36.12 kB / 0.5032 GB, free: 9.371 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001266/0.5144, allocations: 107.8 kB / 0.5033 GB, free: 9.266 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003054/0.5147, allocations: 107.4 kB / 0.5034 GB, free: 9.164 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001079/0.5148, allocations: 39.98 kB / 0.5035 GB, free: 9.125 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002184/0.517, allocations: 1.297 MB / 0.5047 GB, free: 7.84 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.517, allocations: 0 / 0.5047 GB, free: 7.84 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002428/0.5194, allocations: 0.5468 MB / 0.5053 GB, free: 7.293 MB / 414.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.006971/0.5264, allocations: 4.247 MB / 0.5094 GB, free: 2.969 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004753/0.5312, allocations: 2.423 MB / 0.5118 GB, free: 0.5586 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/0.5313, allocations: 4.062 kB / 0.5118 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002838/0.5341, allocations: 1.508 MB / 0.5133 GB, free: 15.04 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002909/0.537, allocations: 454.8 kB / 0.5137 GB, free: 14.61 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0385/0.5756, allocations: 20.49 MB / 0.5337 GB, free: 9.488 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002041/0.5776, allocations: 2.006 MB / 0.5357 GB, free: 7.449 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001494/0.5792, allocations: 423.7 kB / 0.5361 GB, free: 7.031 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001565/0.5807, allocations: 0.9913 MB / 0.537 GB, free: 6.039 MB / 446.1 MB Notification: Performance of SimCode: time 2.474e-06/0.5807, allocations: 0 / 0.537 GB, free: 6.039 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1044/0.6852, allocations: 48.81 MB / 0.5847 GB, free: 5.691 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.55/14.24, allocations: 6.312 kB / 0.5847 GB, free: 5.688 MB / 494.1 MB " [Timeout remaining time 646] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.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_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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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_2/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] "Error: Could not read variable constantSpeed.phi in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv. Warning: Get data of variable constantSpeed.phi from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv failed! Error: Could not read variable smee.is[1] in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv. Warning: Get data of variable smee.is[1] from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv failed! Error: Could not read variable smee.is[2] in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv. Warning: Get data of variable smee.is[2] from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.947287135990337]