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.00177/0.00177, 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.001602/0.001602, allocations: 178.8 kB / 23.7 MB, free: 4.414 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.424/1.424, 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.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.001745/0.001745, allocations: 47.94 kB / 370.4 MB, free: 9.664 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2587/0.2604, allocations: 52.18 MB / 422.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.01057/0.271, allocations: 7.983 MB / 430.6 MB, free: 6.375 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005744/0.2767, allocations: 2.96 MB / 433.5 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001132/0.2779, allocations: 55.62 kB / 433.6 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001929/0.2798, allocations: 0.6406 MB / 434.2 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002342/0.2821, allocations: 0.7497 MB / 435 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009526/0.2831, allocations: 327.4 kB / 435.3 MB, free: 1.633 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002954/0.2861, allocations: 2.105 MB / 437.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001477/0.2875, allocations: 0.7972 MB / 438.2 MB, free: 14.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001607/0.2891, allocations: 0.9421 MB / 439.1 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001967/0.2911, allocations: 1.082 MB / 440.2 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005859/0.2917, allocations: 228 kB / 440.4 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008825/0.2926, allocations: 311.8 kB / 440.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008741/0.2934, allocations: 0.6894 MB / 441.4 MB, free: 11.42 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00138/0.2948, allocations: 0.8712 MB / 442.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003782/0.2986, allocations: 3.145 MB / 445.4 MB, free: 7.387 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2986, allocations: 0 / 445.4 MB, free: 7.387 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2986, allocations: 0 / 445.4 MB, free: 7.387 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.45e-05/0.2987, allocations: 0 / 445.4 MB, free: 7.387 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.005337/0.304, allocations: 2.243 MB / 447.7 MB, free: 5.102 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.3041, allocations: 8.031 kB / 447.7 MB, free: 5.094 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004638/0.3046, allocations: 228.3 kB / 447.9 MB, free: 4.859 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007482/0.3053, allocations: 239.5 kB / 448.1 MB, free: 4.625 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002591/0.3079, allocations: 1.16 MB / 449.3 MB, free: 3.426 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001194/0.308, allocations: 119.2 kB / 449.4 MB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003031/0.3083, allocations: 152 kB / 449.6 MB, free: 3.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003639/0.312, allocations: 2.08 MB / 451.7 MB, free: 1.012 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.742e-05/0.312, allocations: 11.94 kB / 451.7 MB, free: 1 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001588/0.3122, allocations: 68 kB / 451.7 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001004/0.3123, allocations: 70.92 kB / 451.8 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002992/0.3153, allocations: 1.647 MB / 453.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01033/0.3256, allocations: 6.275 MB / 459.7 MB, free: 8.609 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000788/0.3264, allocations: 426.1 kB / 460.1 MB, free: 8.18 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003952/0.3268, allocations: 254 kB / 460.4 MB, free: 7.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001781/0.327, allocations: 40.39 kB / 460.4 MB, free: 7.891 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.63e-05/0.327, allocations: 42.98 kB / 460.5 MB, free: 7.84 MB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 2.154e-06/0.327, allocations: 0 / 460.5 MB, free: 7.84 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.007328/0.3343, allocations: 3.168 MB / 463.6 MB, free: 4.633 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002674/0.337, allocations: 2.207 MB / 465.8 MB, free: 2.285 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002681/0.3397, allocations: 1.67 MB / 467.5 MB, free: 0.6055 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001027/0.3398, allocations: 37.7 kB / 467.5 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009067/0.3407, allocations: 1.053 MB / 468.6 MB, free: 15.5 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002781/0.341, allocations: 250 kB / 468.8 MB, free: 15.25 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004803/0.3414, allocations: 327.3 kB / 469.2 MB, free: 14.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.3416, allocations: 309 kB / 469.5 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008575/0.3424, allocations: 0.5196 MB / 470 MB, free: 14.11 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001645/0.3441, allocations: 1.457 MB / 471.4 MB, free: 12.18 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002687/0.3468, allocations: 2.138 MB / 473.6 MB, free: 9.574 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.771e-05/0.3468, allocations: 16 kB / 473.6 MB, free: 9.559 MB / 382.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003738/0.3505, allocations: 2.158 MB / 475.8 MB, free: 7.383 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.303e-05/0.3506, allocations: 23.94 kB / 475.8 MB, free: 7.359 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.319e-05/0.3506, allocations: 35.94 kB / 475.8 MB, free: 7.324 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005531/0.3512, allocations: 227 kB / 476 MB, free: 7.094 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001148/0.3523, allocations: 395.3 kB / 476.4 MB, free: 6.707 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001829/0.3541, allocations: 1.741 MB / 478.2 MB, free: 4.844 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001319/0.3555, allocations: 139.7 kB / 478.3 MB, free: 4.707 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001496/0.3556, allocations: 96 kB / 478.4 MB, free: 4.613 MB / 382.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.0009003/0.3565, allocations: 0.5906 MB / 479 MB, free: 4.012 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002968/0.3568, allocations: 159 kB / 479.1 MB, free: 3.855 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001997/0.3588, allocations: 1.108 MB / 480.2 MB, free: 2.73 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.978e-06/0.3588, allocations: 11.94 kB / 480.3 MB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.3588, allocations: 0 / 480.3 MB, free: 2.719 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.3588, allocations: 3.984 kB / 480.3 MB, free: 2.715 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006219/0.365, allocations: 3.137 MB / 483.4 MB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.244e-05/0.3651, allocations: 8 kB / 483.4 MB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004235/0.3655, allocations: 111.8 kB / 483.5 MB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006271/0.3661, allocations: 223 kB / 483.7 MB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.359e-05/0.3662, allocations: 19.98 kB / 483.8 MB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004372/0.3705, allocations: 3.831 MB / 487.6 MB, free: 11 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002373/0.3729, allocations: 2.062 MB / 489.6 MB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003081/0.376, allocations: 1.75 MB / 491.4 MB, free: 6.965 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008431/0.3768, allocations: 246.9 kB / 491.6 MB, free: 6.723 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003034/0.3771, allocations: 20 kB / 491.7 MB, free: 6.703 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007641/0.3779, allocations: 47.94 kB / 491.7 MB, free: 6.656 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/0.378, allocations: 63.78 kB / 491.8 MB, free: 6.594 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.238e-05/0.3781, allocations: 23.98 kB / 491.8 MB, free: 6.57 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001945/0.38, allocations: 1.07 MB / 492.9 MB, free: 5.504 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.38, allocations: 0 / 492.9 MB, free: 5.504 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00177/0.3818, allocations: 387.9 kB / 493.2 MB, free: 5.125 MB / 398.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.003349/0.3851, allocations: 2.365 MB / 495.6 MB, free: 2.656 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003016/0.3882, allocations: 1.424 MB / 497 MB, free: 1.219 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.805e-06/0.3882, allocations: 0 / 497 MB, free: 1.219 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001365/0.3895, allocations: 0.7452 MB / 497.8 MB, free: 456 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002169/0.3917, allocations: 403 kB / 498.2 MB, free: 60 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02668/0.4184, allocations: 15.3 MB / 0.5014 GB, free: 15.52 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00147/0.4199, allocations: 0.8892 MB / 0.5023 GB, free: 14.6 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001156/0.421, allocations: 350 kB / 0.5026 GB, free: 14.25 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001067/0.4221, allocations: 0.6203 MB / 0.5032 GB, free: 13.63 MB / 430.1 MB Notification: Performance of SimCode: time 1.122e-06/0.4221, allocations: 4 kB / 0.5032 GB, free: 13.62 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09481/0.5169, allocations: 38.71 MB / 0.541 GB, free: 7.395 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.2/14.71, allocations: 7.969 kB / 0.5411 GB, free: 7.387 MB / 462.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/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/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.326216496992856]