Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.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.001518/0.001519, allocations: 120.8 kB / 17.74 MB, free: 5.352 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.0016/0.0016, allocations: 182.9 kB / 20.68 MB, free: 2.422 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.497/1.497, allocations: 222.9 MB / 246.4 MB, free: 4.324 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.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 51.91 kB / 357.5 MB, free: 8.953 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1022, allocations: 49.44 MB / 406.9 MB, free: 7.473 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.01167/0.1139, allocations: 8.986 MB / 415.9 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006549/0.1205, allocations: 3.162 MB / 419.1 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001579/0.1222, allocations: 39.88 kB / 419.1 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002452/0.1247, allocations: 0.6639 MB / 419.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002812/0.1275, allocations: 0.6989 MB / 420.5 MB, free: 9.871 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001162/0.1287, allocations: 323.5 kB / 420.8 MB, free: 9.555 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003306/0.132, allocations: 2.109 MB / 422.9 MB, free: 7.434 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002119/0.1341, allocations: 1.421 MB / 424.3 MB, free: 5.957 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001561/0.1357, allocations: 0.9109 MB / 425.2 MB, free: 5.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002037/0.1378, allocations: 1.129 MB / 426.4 MB, free: 3.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00062/0.1384, allocations: 232 kB / 426.6 MB, free: 3.684 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009884/0.1394, allocations: 315.8 kB / 426.9 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009417/0.1404, allocations: 0.6778 MB / 427.6 MB, free: 2.695 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001487/0.1419, allocations: 1.085 MB / 428.7 MB, free: 1.605 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1996/0.3414, allocations: 3.104 MB / 431.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.3415, allocations: 0 / 431.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.3415, allocations: 1.375 kB / 431.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.412e-05/0.3416, allocations: 1.25 kB / 431.8 MB, free: 10.27 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: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.004579/0.3462, allocations: 2.323 MB / 434.1 MB, free: 9.207 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.3462, allocations: 8.5 kB / 434.1 MB, free: 9.207 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002874/0.3465, allocations: 236.3 kB / 434.3 MB, free: 9.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006016/0.3471, allocations: 230.8 kB / 434.6 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001971/0.3491, allocations: 1.223 MB / 435.8 MB, free: 8.645 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.686e-05/0.3492, allocations: 117.6 kB / 435.9 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002311/0.3495, allocations: 159.4 kB / 436.1 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003918/0.3534, allocations: 2.008 MB / 438.1 MB, free: 8.469 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.632e-05/0.3535, allocations: 7.203 kB / 438.1 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001495/0.3536, allocations: 62.78 kB / 438.1 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.793e-05/0.3537, allocations: 78.02 kB / 438.2 MB, free: 8.461 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003152/0.3569, allocations: 1.648 MB / 439.9 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01059/0.3675, allocations: 6.907 MB / 446.8 MB, free: 5.898 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007592/0.3683, allocations: 451.1 kB / 447.2 MB, free: 5.867 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000366/0.3687, allocations: 264 kB / 447.5 MB, free: 5.859 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001976/0.3689, allocations: 116.8 kB / 447.6 MB, free: 5.762 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.978e-05/0.3689, allocations: 36.38 kB / 447.6 MB, free: 5.719 MB / 350.1 MB Notification: Performance of pre-optimization done (n=47): time 3.186e-06/0.3689, allocations: 0 / 447.6 MB, free: 5.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=63): time 0.006837/0.3758, allocations: 3.316 MB / 450.9 MB, free: 4.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00189/0.3777, allocations: 2.336 MB / 453.3 MB, free: 3.195 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002208/0.3799, allocations: 1.615 MB / 454.9 MB, free: 2.695 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.355e-05/0.38, allocations: 37.02 kB / 454.9 MB, free: 2.656 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004957/0.3805, allocations: 1.057 MB / 456 MB, free: 1.824 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001482/0.3807, allocations: 250.1 kB / 456.2 MB, free: 1.641 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003625/0.381, allocations: 319.3 kB / 456.5 MB, free: 1.473 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.238e-05/0.3811, allocations: 301.1 kB / 456.8 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006879/0.3818, allocations: 0.5211 MB / 457.3 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001202/0.383, allocations: 1.462 MB / 458.8 MB, free: 15.42 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002552/0.3855, allocations: 2.144 MB / 461 MB, free: 13.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.071e-05/0.3856, allocations: 13.69 kB / 461 MB, free: 13.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.00336/0.389, allocations: 2.164 MB / 463.1 MB, free: 12.64 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.079e-05/0.389, allocations: 19.94 kB / 463.1 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.257e-05/0.389, allocations: 33.62 kB / 463.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005403/0.3896, allocations: 227.1 kB / 463.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001061/0.3907, allocations: 397.1 kB / 463.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001812/0.3925, allocations: 1.849 MB / 465.6 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001416/0.3939, allocations: 142.2 kB / 465.8 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000123/0.394, allocations: 100.4 kB / 465.9 MB, free: 10.75 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * 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 (204): * Single equations (assignments): 201 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009039/0.395, allocations: 0.5913 MB / 466.5 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002578/0.3952, allocations: 163.6 kB / 466.6 MB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001827/0.3971, allocations: 1.112 MB / 467.7 MB, free: 9.652 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.3971, allocations: 3.688 kB / 467.7 MB, free: 9.652 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.3971, allocations: 3.906 kB / 467.7 MB, free: 9.652 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.846e-06/0.3971, allocations: 7.984 kB / 467.8 MB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005209/0.4023, allocations: 3.396 MB / 471.2 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.039e-05/0.4024, allocations: 8.328 kB / 471.2 MB, free: 7.316 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004174/0.4028, allocations: 107.3 kB / 471.3 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006414/0.4034, allocations: 227 kB / 471.5 MB, free: 6.988 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-05/0.4035, allocations: 20 kB / 471.5 MB, free: 6.969 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004353/0.4079, allocations: 4.052 MB / 475.6 MB, free: 2.672 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002211/0.4101, allocations: 2.173 MB / 477.7 MB, free: 372 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002885/0.413, allocations: 1.753 MB / 479.5 MB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000641/0.4137, allocations: 312 kB / 479.8 MB, free: 14.21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001738/0.4138, allocations: 27.92 kB / 479.8 MB, free: 14.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006356/0.4145, allocations: 43.95 kB / 479.9 MB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000146/0.4146, allocations: 67.58 kB / 479.9 MB, free: 14.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.98e-05/0.4147, allocations: 24 kB / 479.9 MB, free: 14.05 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001663/0.4164, allocations: 1.072 MB / 481 MB, free: 12.99 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4164, allocations: 0 / 481 MB, free: 12.99 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001659/0.418, allocations: 380 kB / 481.4 MB, free: 12.62 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 1 ($STATESET1.x) * 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 (57): * Single equations (assignments): 54 * Array equations: 0 * 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): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003097/0.4212, allocations: 2.377 MB / 483.8 MB, free: 10.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002662/0.4238, allocations: 1.616 MB / 485.4 MB, free: 8.594 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.391e-06/0.4239, allocations: 448 / 485.4 MB, free: 8.594 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001294/0.4252, allocations: 0.8577 MB / 486.2 MB, free: 7.711 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001925/0.4271, allocations: 405.9 kB / 486.6 MB, free: 7.332 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02127/0.4484, allocations: 15.29 MB / 0.4902 GB, free: 6.957 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001263/0.4497, allocations: 1.472 MB / 0.4916 GB, free: 5.457 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001023/0.4507, allocations: 350.3 kB / 0.4919 GB, free: 5.121 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008552/0.4516, allocations: 0.6203 MB / 0.4925 GB, free: 4.5 MB / 398.1 MB Notification: Performance of SimCode: time 7.42e-07/0.4516, allocations: 4 kB / 0.4925 GB, free: 4.496 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08307/0.5347, allocations: 36.31 MB / 0.528 GB, free: 0.6211 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.31/14.85, allocations: 18.05 kB / 0.528 GB, free: 0.6055 MB / 430.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv --start-time 0 --stop-time 0.04 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable smpm.is[1] in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv. Warning: Get data of variable smpm.is[1] from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv failed! Error: Could not read variable smpm.is[2] in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv. Warning: Get data of variable smpm.is[2] from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv failed! Error: Could not read variable constantSpeed.phi in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv. Warning: Get data of variable constantSpeed.phi from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.366138659068383]