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.001752/0.001752, allocations: 115.8 kB / 20.43 MB, free: 1.449 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.002133/0.002133, allocations: 216.6 kB / 23.74 MB, free: 4.656 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.506/1.506, allocations: 230.6 MB / 257.5 MB, free: 8.031 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.00151/0.00151, allocations: 43.92 kB / 377.8 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.288/0.2895, allocations: 53.36 MB / 431.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.0146/0.3041, allocations: 11.62 MB / 442.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008549/0.3126, allocations: 3.955 MB / 446.7 MB, free: 7.234 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002585/0.3152, allocations: 79.5 kB / 446.8 MB, free: 7.156 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002875/0.3181, allocations: 0.8811 MB / 447.7 MB, free: 6.273 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00438/0.3225, allocations: 0.994 MB / 448.7 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001538/0.324, allocations: 0.5265 MB / 449.2 MB, free: 4.746 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005148/0.3292, allocations: 3.234 MB / 452.4 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002359/0.3315, allocations: 1.481 MB / 453.9 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002325/0.3338, allocations: 1.464 MB / 455.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003473/0.3373, allocations: 1.872 MB / 457.2 MB, free: 12.61 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007533/0.3381, allocations: 384 kB / 457.6 MB, free: 12.23 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001542/0.3396, allocations: 0.6752 MB / 458.3 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001184/0.3408, allocations: 1.098 MB / 459.4 MB, free: 10.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002473/0.3433, allocations: 1.727 MB / 461.1 MB, free: 8.719 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006898/0.3502, allocations: 5.072 MB / 466.2 MB, free: 3.629 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.3502, allocations: 0 / 466.2 MB, free: 3.629 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3502, allocations: 0 / 466.2 MB, free: 3.629 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001773/0.3504, allocations: 0 / 466.2 MB, free: 3.629 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.008796/0.3592, allocations: 3.499 MB / 469.7 MB, free: 80 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.293e-05/0.3592, allocations: 12.03 kB / 469.7 MB, free: 68 kB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005601/0.3598, allocations: 370.9 kB / 470.1 MB, free: 15.7 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001829/0.3616, allocations: 458.7 kB / 470.5 MB, free: 15.25 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004714/0.3663, allocations: 1.787 MB / 472.3 MB, free: 13.42 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002008/0.3665, allocations: 193 kB / 472.5 MB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005057/0.367, allocations: 256 kB / 472.7 MB, free: 12.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006374/0.3734, allocations: 3.247 MB / 476 MB, free: 9.652 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.129e-05/0.3734, allocations: 0 / 476 MB, free: 9.652 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002348/0.3737, allocations: 108 kB / 476.1 MB, free: 9.547 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001529/0.3738, allocations: 116.9 kB / 476.2 MB, free: 9.43 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005061/0.3789, allocations: 2.705 MB / 478.9 MB, free: 6.711 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02192/0.4008, allocations: 10.11 MB / 489 MB, free: 12.26 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002441/0.4033, allocations: 1.252 MB / 490.3 MB, free: 11.01 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001945/0.4052, allocations: 0.9797 MB / 491.3 MB, free: 10.04 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002531/0.4055, allocations: 52.95 kB / 491.3 MB, free: 9.984 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.046e-05/0.4055, allocations: 43.56 kB / 491.3 MB, free: 9.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 3.306e-06/0.4055, allocations: 0 / 491.3 MB, free: 9.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=134): time 0.01831/0.4238, allocations: 7.075 MB / 498.4 MB, free: 2.828 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.598e-05/0.4239, allocations: 72.66 kB / 498.5 MB, free: 2.746 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003144/0.427, allocations: 1.885 MB / 0.4887 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001374/0.4272, allocations: 49.7 kB / 0.4887 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001117/0.4283, allocations: 1.284 MB / 0.49 GB, free: 15.51 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004758/0.4288, allocations: 483.9 kB / 0.4904 GB, free: 15.03 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005732/0.4293, allocations: 299.5 kB / 0.4907 GB, free: 14.73 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.4295, allocations: 301.1 kB / 0.491 GB, free: 14.43 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00148/0.4309, allocations: 0.8237 MB / 0.4918 GB, free: 13.61 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001917/0.4329, allocations: 1.304 MB / 0.4931 GB, free: 12.09 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003494/0.4364, allocations: 2.258 MB / 0.4953 GB, free: 9.617 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.656e-06/0.4364, allocations: 8 kB / 0.4953 GB, free: 9.609 MB / 414.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005464/0.4418, allocations: 2.728 MB / 0.4979 GB, free: 6.867 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.356e-05/0.4419, allocations: 15.94 kB / 0.498 GB, free: 6.852 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.032e-05/0.4419, allocations: 19.94 kB / 0.498 GB, free: 6.832 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001087/0.443, allocations: 414.5 kB / 0.4984 GB, free: 6.418 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00152/0.4445, allocations: 403.3 kB / 0.4988 GB, free: 6.023 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006941/0.4514, allocations: 5.584 MB / 0.5042 GB, free: 216 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001846/0.4533, allocations: 127.8 kB / 0.5043 GB, free: 88 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001668/0.4535, allocations: 71.98 kB / 0.5044 GB, free: 16 kB / 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.001567/0.455, allocations: 0.7901 MB / 0.5052 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004613/0.4555, allocations: 206.7 kB / 0.5054 GB, free: 15.01 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004427/0.4599, allocations: 2.32 MB / 0.5076 GB, free: 12.67 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.346e-05/0.46, allocations: 19.94 kB / 0.5077 GB, free: 12.65 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.228e-06/0.46, allocations: 4 kB / 0.5077 GB, free: 12.65 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.579e-05/0.46, allocations: 7.969 kB / 0.5077 GB, free: 12.64 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01018/0.4702, allocations: 5.139 MB / 0.5127 GB, free: 7.379 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.185e-05/0.4702, allocations: 4.062 kB / 0.5127 GB, free: 7.375 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001088/0.4713, allocations: 259.6 kB / 0.5129 GB, free: 7.121 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001313/0.4726, allocations: 466 kB / 0.5134 GB, free: 6.656 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000107/0.4727, allocations: 39.98 kB / 0.5134 GB, free: 6.617 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01066/0.4833, allocations: 7.02 MB / 0.5203 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-05/0.4834, allocations: 11.94 kB / 0.5203 GB, free: 15.24 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006792/0.4902, allocations: 3.497 MB / 0.5237 GB, free: 11.66 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001507/0.4917, allocations: 386.5 kB / 0.5241 GB, free: 11.29 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002812/0.4919, allocations: 35.98 kB / 0.5241 GB, free: 11.25 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001153/0.4931, allocations: 99.88 kB / 0.5242 GB, free: 11.15 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002948/0.4934, allocations: 116.7 kB / 0.5243 GB, free: 11.04 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001037/0.4935, allocations: 43.92 kB / 0.5243 GB, free: 10.99 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002276/0.4958, allocations: 1.307 MB / 0.5256 GB, free: 9.695 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4958, allocations: 0 / 0.5256 GB, free: 9.695 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002002/0.4978, allocations: 0.5429 MB / 0.5262 GB, free: 9.152 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.006799/0.5046, allocations: 4.158 MB / 0.5302 GB, free: 4.891 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004547/0.5091, allocations: 2.274 MB / 0.5324 GB, free: 2.594 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.135e-06/0.5091, allocations: 0 / 0.5324 GB, free: 2.594 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002643/0.5118, allocations: 1.44 MB / 0.5338 GB, free: 1.113 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00257/0.5143, allocations: 462.2 kB / 0.5343 GB, free: 0.6758 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2791/0.7935, allocations: 20.39 MB / 0.5542 GB, free: 92.56 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001463/0.7949, allocations: 2.01 MB / 0.5562 GB, free: 90.89 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001226/0.7962, allocations: 431.7 kB / 0.5566 GB, free: 90.47 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001013/0.7972, allocations: 0.9991 MB / 0.5575 GB, free: 89.47 MB / 446.1 MB Notification: Performance of SimCode: time 8.82e-07/0.7972, allocations: 0 / 0.5575 GB, free: 89.47 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1138/0.911, allocations: 50.65 MB / 0.607 GB, free: 39.28 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.5/16.41, allocations: 4.062 kB / 0.607 GB, free: 39.27 MB / 446.1 MB " [Timeout remaining time 643] (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: 20.14169054499871]