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.001745/0.001745, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.002149/0.002149, allocations: 210.9 kB / 23.73 MB, free: 4.41 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.505/1.505, allocations: 230.6 MB / 257.5 MB, free: 7.812 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.00171/0.00171, allocations: 47.92 kB / 377.7 MB, free: 3.082 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2441/0.2458, allocations: 53.37 MB / 431.1 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator): time 0.01368/0.2595, allocations: 10.12 MB / 441.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007364/0.2669, allocations: 3.718 MB / 444.9 MB, free: 8.793 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001718/0.2686, allocations: 75.5 kB / 445 MB, free: 8.719 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002724/0.2713, allocations: 0.8227 MB / 445.8 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003893/0.2752, allocations: 0.994 MB / 446.8 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001826/0.277, allocations: 0.5188 MB / 447.3 MB, free: 6.375 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005094/0.2821, allocations: 3.23 MB / 450.6 MB, free: 3.133 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002995/0.2851, allocations: 1.415 MB / 452 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002378/0.2875, allocations: 1.48 MB / 453.5 MB, free: 172 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003113/0.2906, allocations: 1.743 MB / 455.2 MB, free: 14.42 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009198/0.2915, allocations: 388 kB / 455.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001661/0.2932, allocations: 0.605 MB / 456.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001415/0.2946, allocations: 1.087 MB / 457.3 MB, free: 12.34 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001895/0.2965, allocations: 1.396 MB / 458.7 MB, free: 10.94 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005553/0.302, allocations: 5.091 MB / 463.8 MB, free: 5.832 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.302, allocations: 0 / 463.8 MB, free: 5.832 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.302, allocations: 0 / 463.8 MB, free: 5.832 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9e-05/0.3021, allocations: 0 / 463.8 MB, free: 5.832 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.007335/0.3095, allocations: 3.503 MB / 467.3 MB, free: 2.277 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.3095, allocations: 12.03 kB / 467.3 MB, free: 2.266 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004777/0.31, allocations: 358.9 kB / 467.6 MB, free: 1.906 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001639/0.3116, allocations: 466.7 kB / 468.1 MB, free: 1.449 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003595/0.3152, allocations: 1.788 MB / 469.9 MB, free: 15.62 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001636/0.3154, allocations: 196.9 kB / 470.1 MB, free: 15.42 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003972/0.3158, allocations: 255.9 kB / 470.3 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005791/0.3216, allocations: 3.377 MB / 473.7 MB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-05/0.3217, allocations: 4 kB / 473.7 MB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002594/0.3219, allocations: 100 kB / 473.8 MB, free: 11.59 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001597/0.3221, allocations: 116.9 kB / 473.9 MB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005253/0.3273, allocations: 2.701 MB / 476.6 MB, free: 8.758 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01855/0.3459, allocations: 9.288 MB / 485.9 MB, free: 15.12 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002189/0.3481, allocations: 1.245 MB / 487.1 MB, free: 13.88 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001788/0.3499, allocations: 0.9795 MB / 488.1 MB, free: 12.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000242/0.3501, allocations: 52.97 kB / 488.2 MB, free: 12.86 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.598e-05/0.3501, allocations: 51.56 kB / 488.2 MB, free: 12.79 MB / 398.1 MB Notification: Performance of pre-optimization done (n=115): time 4.278e-06/0.3501, allocations: 0 / 488.2 MB, free: 12.79 MB / 398.1 MB Notification: Performance of matching and sorting (n=134): time 0.01866/0.3688, allocations: 7.067 MB / 495.3 MB, free: 5.703 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.505e-05/0.3689, allocations: 72.7 kB / 495.4 MB, free: 5.621 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003704/0.3726, allocations: 1.912 MB / 497.3 MB, free: 3.711 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001977/0.3728, allocations: 53.7 kB / 497.3 MB, free: 3.652 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00105/0.3738, allocations: 1.268 MB / 498.6 MB, free: 2.371 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006211/0.3744, allocations: 491.8 kB / 499.1 MB, free: 1.887 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006487/0.3751, allocations: 303.4 kB / 499.4 MB, free: 1.582 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001221/0.3752, allocations: 305.1 kB / 499.7 MB, free: 1.281 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001536/0.3767, allocations: 0.8275 MB / 0.4888 GB, free: 464 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001941/0.3787, allocations: 1.3 MB / 0.49 GB, free: 14.94 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003568/0.3823, allocations: 2.254 MB / 0.4922 GB, free: 12.47 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.078e-05/0.3823, allocations: 8 kB / 0.4923 GB, free: 12.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005285/0.3876, allocations: 2.728 MB / 0.4949 GB, free: 9.715 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.813e-05/0.3876, allocations: 8 kB / 0.4949 GB, free: 9.707 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.853e-05/0.3876, allocations: 20.28 kB / 0.4949 GB, free: 9.688 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001069/0.3887, allocations: 418.2 kB / 0.4953 GB, free: 9.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001638/0.3903, allocations: 399.3 kB / 0.4957 GB, free: 8.879 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006912/0.3972, allocations: 5.548 MB / 0.5011 GB, free: 3.102 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001998/0.3992, allocations: 127.9 kB / 0.5013 GB, free: 2.977 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003045/0.3995, allocations: 72 kB / 0.5013 GB, free: 2.906 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.001939/0.4015, allocations: 0.7861 MB / 0.5021 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000766/0.4022, allocations: 206.7 kB / 0.5023 GB, free: 1.906 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004787/0.407, allocations: 2.316 MB / 0.5046 GB, free: 15.57 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.192e-05/0.4071, allocations: 12 kB / 0.5046 GB, free: 15.56 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-05/0.4071, allocations: 7.938 kB / 0.5046 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.487e-05/0.4071, allocations: 11.91 kB / 0.5046 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01012/0.4172, allocations: 4.858 MB / 0.5093 GB, free: 10.55 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.348e-05/0.4172, allocations: 8 kB / 0.5093 GB, free: 10.55 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001092/0.4183, allocations: 247.6 kB / 0.5096 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001246/0.4196, allocations: 453.6 kB / 0.51 GB, free: 9.855 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001138/0.4197, allocations: 43.97 kB / 0.5101 GB, free: 9.812 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007872/0.4276, allocations: 6.971 MB / 0.5169 GB, free: 2.496 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.146e-05/0.4276, allocations: 15.88 kB / 0.5169 GB, free: 2.48 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006172/0.4337, allocations: 3.497 MB / 0.5203 GB, free: 14.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001178/0.4349, allocations: 382.6 kB / 0.5207 GB, free: 14.53 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000448/0.4354, allocations: 35.98 kB / 0.5207 GB, free: 14.49 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0013/0.4367, allocations: 99.89 kB / 0.5208 GB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002782/0.4369, allocations: 112.7 kB / 0.5209 GB, free: 14.28 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.437, allocations: 47.98 kB / 0.5209 GB, free: 14.23 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00225/0.4393, allocations: 1.303 MB / 0.5222 GB, free: 12.94 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4393, allocations: 0 / 0.5222 GB, free: 12.94 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001945/0.4412, allocations: 0.5547 MB / 0.5227 GB, free: 12.39 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.00662/0.4479, allocations: 4.154 MB / 0.5268 GB, free: 8.133 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004262/0.4521, allocations: 2.277 MB / 0.529 GB, free: 5.828 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/0.4521, allocations: 2 kB / 0.529 GB, free: 5.828 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002612/0.4547, allocations: 1.451 MB / 0.5304 GB, free: 4.34 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002513/0.4573, allocations: 449.9 kB / 0.5309 GB, free: 3.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2279/0.6852, allocations: 20.38 MB / 0.5508 GB, free: 94.71 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0012/0.6864, allocations: 1.453 MB / 0.5522 GB, free: 93.66 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001127/0.6875, allocations: 436.3 kB / 0.5526 GB, free: 93.39 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009684/0.6885, allocations: 0.9933 MB / 0.5536 GB, free: 92.47 MB / 446.1 MB Notification: Performance of SimCode: time 6.81e-07/0.6885, allocations: 3.391 kB / 0.5536 GB, free: 92.47 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08764/0.7761, allocations: 52.22 MB / 0.6046 GB, free: 40.85 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.35/14.13, allocations: 0 / 0.6046 GB, free: 40.85 MB / 446.1 MB " [Timeout remaining time 646] (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: 17.887294253800064]