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.001749/0.001749, allocations: 112 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.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.002031/0.002031, allocations: 188.4 kB / 23.72 MB, free: 4.684 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.401/1.401, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.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.001614/0.001614, allocations: 43.92 kB / 370.5 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.258/0.2596, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01421/0.2738, allocations: 11.59 MB / 434.2 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008668/0.2825, allocations: 3.878 MB / 438.1 MB, free: 15.08 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002592/0.2851, allocations: 75.56 kB / 438.2 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003067/0.2882, allocations: 0.8694 MB / 439 MB, free: 14.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004452/0.2926, allocations: 0.9979 MB / 440 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002034/0.2947, allocations: 0.5226 MB / 440.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005954/0.3006, allocations: 3.211 MB / 443.8 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002658/0.3033, allocations: 1.473 MB / 445.3 MB, free: 7.848 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002709/0.306, allocations: 1.468 MB / 446.7 MB, free: 6.375 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003486/0.3095, allocations: 1.857 MB / 448.6 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009896/0.3105, allocations: 388 kB / 449 MB, free: 4.133 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001829/0.3123, allocations: 0.6985 MB / 449.7 MB, free: 3.434 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001387/0.3137, allocations: 1.083 MB / 450.7 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002809/0.3165, allocations: 1.723 MB / 452.5 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006984/0.3235, allocations: 5.06 MB / 457.5 MB, free: 11.53 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.3235, allocations: 0 / 457.5 MB, free: 11.53 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.3235, allocations: 0 / 457.5 MB, free: 11.53 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001459/0.3236, allocations: 0 / 457.5 MB, free: 11.53 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.008892/0.3325, allocations: 3.487 MB / 461 MB, free: 7.988 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.56e-05/0.3325, allocations: 8.031 kB / 461 MB, free: 7.98 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006092/0.3332, allocations: 366.9 kB / 461.4 MB, free: 7.613 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001437/0.3346, allocations: 426.7 kB / 461.8 MB, free: 7.195 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004236/0.3388, allocations: 1.772 MB / 463.6 MB, free: 5.383 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001829/0.339, allocations: 189 kB / 463.7 MB, free: 5.195 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005676/0.3396, allocations: 251.9 kB / 464 MB, free: 4.949 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006169/0.3458, allocations: 3.251 MB / 467.2 MB, free: 1.621 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.001e-05/0.3458, allocations: 11.92 kB / 467.3 MB, free: 1.609 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002362/0.3461, allocations: 107.9 kB / 467.4 MB, free: 1.504 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001517/0.3462, allocations: 116.9 kB / 467.5 MB, free: 1.387 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005809/0.352, allocations: 2.701 MB / 470.2 MB, free: 14.67 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02118/0.3732, allocations: 10.11 MB / 480.3 MB, free: 4.215 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00242/0.3756, allocations: 1.251 MB / 481.5 MB, free: 2.965 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001886/0.3775, allocations: 0.9727 MB / 482.5 MB, free: 1.992 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002529/0.3778, allocations: 60.95 kB / 482.6 MB, free: 1.934 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.08e-05/0.3778, allocations: 47.56 kB / 482.6 MB, free: 1.875 MB / 382.1 MB Notification: Performance of pre-optimization done (n=115): time 1.819e-05/0.3778, allocations: 3.984 kB / 482.6 MB, free: 1.871 MB / 382.1 MB Notification: Performance of matching and sorting (n=134): time 0.01837/0.3962, allocations: 7.079 MB / 489.7 MB, free: 10.77 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.315e-05/0.3962, allocations: 64.72 kB / 489.8 MB, free: 10.7 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002917/0.3992, allocations: 1.869 MB / 491.6 MB, free: 8.828 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001535/0.3993, allocations: 45.7 kB / 491.7 MB, free: 8.777 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001057/0.4004, allocations: 1.276 MB / 493 MB, free: 7.488 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004561/0.4008, allocations: 499.8 kB / 493.4 MB, free: 6.996 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004896/0.4013, allocations: 299.4 kB / 493.7 MB, free: 6.695 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.4014, allocations: 301.1 kB / 494 MB, free: 6.398 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001441/0.4029, allocations: 0.8159 MB / 494.8 MB, free: 5.582 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001811/0.4047, allocations: 1.312 MB / 496.2 MB, free: 4.055 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003374/0.4081, allocations: 2.25 MB / 498.4 MB, free: 1.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-05/0.4081, allocations: 4 kB / 498.4 MB, free: 1.586 MB / 398.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005069/0.4131, allocations: 2.72 MB / 0.4894 GB, free: 14.85 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.939e-05/0.4132, allocations: 15.44 kB / 0.4894 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.668e-05/0.4132, allocations: 16 kB / 0.4894 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001027/0.4142, allocations: 417.9 kB / 0.4898 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00153/0.4158, allocations: 403.3 kB / 0.4902 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006693/0.4224, allocations: 5.593 MB / 0.4957 GB, free: 8.188 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001714/0.4242, allocations: 131.8 kB / 0.4958 GB, free: 8.059 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001785/0.4243, allocations: 68 kB / 0.4959 GB, free: 7.992 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.001463/0.4258, allocations: 0.7902 MB / 0.4966 GB, free: 7.191 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004763/0.4263, allocations: 206.7 kB / 0.4968 GB, free: 6.988 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004418/0.4307, allocations: 2.3 MB / 0.4991 GB, free: 4.66 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.544e-05/0.4307, allocations: 16 kB / 0.4991 GB, free: 4.645 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/0.4307, allocations: 7.938 kB / 0.4991 GB, free: 4.637 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.635e-05/0.4308, allocations: 11.97 kB / 0.4991 GB, free: 4.625 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01023/0.441, allocations: 5.153 MB / 0.5041 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.671e-05/0.441, allocations: 4 kB / 0.5041 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001159/0.4422, allocations: 256.2 kB / 0.5044 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001271/0.4434, allocations: 469.8 kB / 0.5048 GB, free: 14.63 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001122/0.4435, allocations: 39.98 kB / 0.5049 GB, free: 14.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008169/0.4517, allocations: 7.021 MB / 0.5117 GB, free: 7.223 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.163e-06/0.4517, allocations: 7.938 kB / 0.5117 GB, free: 7.215 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006189/0.4579, allocations: 3.504 MB / 0.5152 GB, free: 3.629 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001336/0.4592, allocations: 382.6 kB / 0.5155 GB, free: 3.254 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003306/0.4596, allocations: 32 kB / 0.5155 GB, free: 3.223 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001166/0.4607, allocations: 99.88 kB / 0.5156 GB, free: 3.125 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000263/0.461, allocations: 116.7 kB / 0.5158 GB, free: 3.008 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.649e-05/0.4611, allocations: 43.98 kB / 0.5158 GB, free: 2.965 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002075/0.4632, allocations: 1.294 MB / 0.5171 GB, free: 1.68 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4632, allocations: 0 / 0.5171 GB, free: 1.68 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001984/0.4652, allocations: 0.543 MB / 0.5176 GB, free: 1.137 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.006454/0.4716, allocations: 4.162 MB / 0.5217 GB, free: 12.88 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00423/0.4758, allocations: 2.275 MB / 0.5239 GB, free: 10.58 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.851e-06/0.4759, allocations: 64 / 0.5239 GB, free: 10.58 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002623/0.4785, allocations: 1.451 MB / 0.5253 GB, free: 9.09 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002177/0.4807, allocations: 450.9 kB / 0.5257 GB, free: 8.652 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2204/0.701, allocations: 20.33 MB / 0.5456 GB, free: 103.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001368/0.7024, allocations: 2.004 MB / 0.5475 GB, free: 103 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001141/0.7035, allocations: 431.6 kB / 0.5479 GB, free: 103 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009868/0.7045, allocations: 0.9908 MB / 0.5489 GB, free: 102.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.001e-06/0.7045, allocations: 0 / 0.5489 GB, free: 102.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08755/0.7921, allocations: 50.46 MB / 0.5982 GB, free: 53.22 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.3/16.09, allocations: 4.062 kB / 0.5982 GB, free: 53.21 MB / 446.1 MB " [Timeout remaining time 644] (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/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/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: 19.76139855299698]