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.001351/0.001351, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.00142/0.00142, allocations: 195.6 kB / 23.71 MB, free: 4.406 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.414/1.414, allocations: 225.7 MB / 252.5 MB, free: 12.8 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.001532/0.001532, allocations: 43.92 kB / 370.4 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2327/0.2342, allocations: 52.18 MB / 422.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.0131/0.2473, allocations: 10.11 MB / 432.7 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007553/0.2549, allocations: 3.64 MB / 436.3 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001594/0.2565, allocations: 79.5 kB / 436.4 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002175/0.2586, allocations: 0.8117 MB / 437.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002829/0.2615, allocations: 1.002 MB / 438.2 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001219/0.2627, allocations: 0.5071 MB / 438.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004065/0.2667, allocations: 3.207 MB / 441.9 MB, free: 11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002246/0.269, allocations: 1.419 MB / 443.3 MB, free: 9.516 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002174/0.2712, allocations: 1.468 MB / 444.8 MB, free: 8.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002837/0.274, allocations: 1.735 MB / 446.6 MB, free: 6.301 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006177/0.2746, allocations: 384 kB / 446.9 MB, free: 5.926 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001235/0.2759, allocations: 0.6128 MB / 447.5 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001101/0.277, allocations: 1.083 MB / 448.6 MB, free: 4.227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001725/0.2787, allocations: 1.389 MB / 450 MB, free: 2.832 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005531/0.2842, allocations: 5.083 MB / 455.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.2842, allocations: 4 kB / 455.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2842, allocations: 0 / 455.1 MB, free: 13.73 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.609e-05/0.2843, allocations: 0 / 455.1 MB, free: 13.73 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.007209/0.2915, allocations: 3.479 MB / 458.6 MB, free: 10.2 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.2916, allocations: 12.03 kB / 458.6 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004835/0.292, allocations: 354.9 kB / 458.9 MB, free: 9.828 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001315/0.2934, allocations: 430.7 kB / 459.4 MB, free: 9.406 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003636/0.297, allocations: 1.779 MB / 461.1 MB, free: 7.586 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001659/0.2972, allocations: 197 kB / 461.3 MB, free: 7.391 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004045/0.2976, allocations: 248 kB / 461.6 MB, free: 7.148 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005988/0.3035, allocations: 3.373 MB / 464.9 MB, free: 3.668 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.771e-05/0.3036, allocations: 4 kB / 464.9 MB, free: 3.664 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002553/0.3039, allocations: 104 kB / 465 MB, free: 3.562 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001531/0.304, allocations: 116.9 kB / 465.2 MB, free: 3.445 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005162/0.3092, allocations: 2.701 MB / 467.9 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01711/0.3263, allocations: 9.3 MB / 477.2 MB, free: 7.09 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00213/0.3284, allocations: 1.248 MB / 478.4 MB, free: 5.844 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0018/0.3302, allocations: 0.9688 MB / 479.4 MB, free: 4.879 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002311/0.3305, allocations: 56.95 kB / 479.4 MB, free: 4.824 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.958e-05/0.3305, allocations: 47.56 kB / 479.5 MB, free: 4.766 MB / 382.1 MB Notification: Performance of pre-optimization done (n=115): time 3.537e-06/0.3305, allocations: 0 / 479.5 MB, free: 4.766 MB / 382.1 MB Notification: Performance of matching and sorting (n=134): time 0.01816/0.3487, allocations: 7.072 MB / 486.6 MB, free: 13.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.947e-05/0.3487, allocations: 64.72 kB / 486.6 MB, free: 13.59 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003291/0.352, allocations: 1.896 MB / 488.5 MB, free: 11.69 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001651/0.3522, allocations: 45.7 kB / 488.6 MB, free: 11.64 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001062/0.3532, allocations: 1.279 MB / 489.8 MB, free: 10.35 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005241/0.3537, allocations: 491.9 kB / 490.3 MB, free: 9.867 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005638/0.3543, allocations: 299.5 kB / 490.6 MB, free: 9.566 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.3545, allocations: 305.1 kB / 490.9 MB, free: 9.266 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001518/0.356, allocations: 0.8159 MB / 491.7 MB, free: 8.449 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002045/0.358, allocations: 1.316 MB / 493 MB, free: 6.918 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003757/0.3618, allocations: 2.25 MB / 495.3 MB, free: 4.453 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.568e-05/0.3618, allocations: 4 kB / 495.3 MB, free: 4.449 MB / 398.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005635/0.3674, allocations: 2.717 MB / 498 MB, free: 1.715 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.185e-05/0.3675, allocations: 16.03 kB / 498 MB, free: 1.699 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.465e-05/0.3675, allocations: 16 kB / 498 MB, free: 1.684 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001113/0.3686, allocations: 426.1 kB / 498.5 MB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001639/0.3703, allocations: 403.3 kB / 498.9 MB, free: 0.8633 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007699/0.378, allocations: 5.541 MB / 0.4926 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002064/0.38, allocations: 127.8 kB / 0.4927 GB, free: 10.97 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000287/0.3803, allocations: 71.98 kB / 0.4928 GB, free: 10.9 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.001758/0.3821, allocations: 0.7896 MB / 0.4935 GB, free: 10.1 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007399/0.3828, allocations: 206.7 kB / 0.4937 GB, free: 9.898 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004864/0.3877, allocations: 2.308 MB / 0.496 GB, free: 7.562 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.33e-05/0.3877, allocations: 12 kB / 0.496 GB, free: 7.551 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.544e-05/0.3877, allocations: 7.938 kB / 0.496 GB, free: 7.543 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.3877, allocations: 7.984 kB / 0.496 GB, free: 7.535 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01078/0.3985, allocations: 4.857 MB / 0.5008 GB, free: 2.559 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.62e-05/0.3985, allocations: 7.984 kB / 0.5008 GB, free: 2.551 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001136/0.3997, allocations: 252.2 kB / 0.501 GB, free: 2.305 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001254/0.4009, allocations: 458.2 kB / 0.5014 GB, free: 1.848 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001189/0.401, allocations: 39.97 kB / 0.5015 GB, free: 1.809 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008143/0.4092, allocations: 6.985 MB / 0.5083 GB, free: 10.48 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.007e-06/0.4092, allocations: 11.88 kB / 0.5083 GB, free: 10.47 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00685/0.416, allocations: 3.497 MB / 0.5117 GB, free: 6.891 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001497/0.4175, allocations: 382.6 kB / 0.5121 GB, free: 6.516 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006047/0.4181, allocations: 35.98 kB / 0.5121 GB, free: 6.48 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001464/0.4196, allocations: 103.9 kB / 0.5122 GB, free: 6.379 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003046/0.4199, allocations: 116.7 kB / 0.5123 GB, free: 6.262 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001237/0.42, allocations: 39.98 kB / 0.5124 GB, free: 6.223 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002682/0.4227, allocations: 1.294 MB / 0.5136 GB, free: 4.938 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4227, allocations: 0 / 0.5136 GB, free: 4.938 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00269/0.4254, allocations: 0.5469 MB / 0.5142 GB, free: 4.391 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.007546/0.433, allocations: 4.157 MB / 0.5182 GB, free: 144 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004766/0.4377, allocations: 2.274 MB / 0.5204 GB, free: 13.84 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.157e-05/0.4377, allocations: 4 kB / 0.5205 GB, free: 13.84 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002814/0.4405, allocations: 1.448 MB / 0.5219 GB, free: 12.35 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003377/0.4439, allocations: 444.3 kB / 0.5223 GB, free: 11.92 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04006/0.484, allocations: 20.32 MB / 0.5421 GB, free: 6.828 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002515/0.4865, allocations: 1.443 MB / 0.5435 GB, free: 5.348 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001491/0.488, allocations: 427.7 kB / 0.544 GB, free: 4.926 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001569/0.4896, allocations: 0.9952 MB / 0.5449 GB, free: 3.93 MB / 462.1 MB Notification: Performance of SimCode: time 1.173e-06/0.4896, allocations: 7.938 kB / 0.5449 GB, free: 3.922 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2999/0.7895, allocations: 52.03 MB / 0.5957 GB, free: 87.15 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.28/14.07, allocations: 3.984 kB / 0.5958 GB, free: 87.14 MB / 462.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/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: 17.894095183350146]