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.001757/0.001757, allocations: 109.5 kB / 20.43 MB, free: 1.457 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.002164/0.002164, allocations: 184.6 kB / 23.72 MB, free: 4.699 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.418/1.418, 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.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.001549/0.001549, allocations: 48.06 kB / 370.5 MB, free: 9.836 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2521, allocations: 52.18 MB / 422.6 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.01119/0.2633, allocations: 9.077 MB / 431.7 MB, free: 5.621 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005783/0.2691, allocations: 3.174 MB / 434.9 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008993/0.27, allocations: 59.62 kB / 434.9 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001734/0.2717, allocations: 0.7108 MB / 435.7 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002058/0.2738, allocations: 0.7535 MB / 436.4 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000807/0.2746, allocations: 347.2 kB / 436.7 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002799/0.2774, allocations: 2.101 MB / 438.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001304/0.2787, allocations: 0.8285 MB / 439.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001394/0.2801, allocations: 0.9421 MB / 440.6 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001765/0.2819, allocations: 1.156 MB / 441.8 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003567/0.2822, allocations: 228 kB / 442 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006417/0.2829, allocations: 323.8 kB / 442.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007582/0.2836, allocations: 0.6894 MB / 443 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001273/0.2849, allocations: 1.077 MB / 444.1 MB, free: 9.156 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003573/0.2885, allocations: 3.122 MB / 447.2 MB, free: 6.023 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.2885, allocations: 0 / 447.2 MB, free: 6.023 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2885, allocations: 0 / 447.2 MB, free: 6.023 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.179e-05/0.2886, allocations: 0 / 447.2 MB, free: 6.023 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.004792/0.2933, allocations: 2.239 MB / 449.4 MB, free: 3.742 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/0.2934, allocations: 12.03 kB / 449.5 MB, free: 3.73 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003112/0.2937, allocations: 232.3 kB / 449.7 MB, free: 3.492 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006231/0.2943, allocations: 239.5 kB / 449.9 MB, free: 3.258 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002429/0.2968, allocations: 1.152 MB / 451.1 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001201/0.2969, allocations: 123.2 kB / 451.2 MB, free: 1.945 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000277/0.2971, allocations: 148 kB / 451.3 MB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003697/0.3008, allocations: 2.008 MB / 453.3 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.586e-05/0.3009, allocations: 11.95 kB / 453.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001513/0.3011, allocations: 60 kB / 453.4 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.894e-05/0.3012, allocations: 78.92 kB / 453.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003093/0.3043, allocations: 1.647 MB / 455.1 MB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01143/0.3157, allocations: 6.781 MB / 461.9 MB, free: 6.832 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008453/0.3165, allocations: 429.8 kB / 462.3 MB, free: 6.398 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003947/0.3169, allocations: 250 kB / 462.6 MB, free: 6.152 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001963/0.3171, allocations: 40.39 kB / 462.6 MB, free: 6.113 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.282e-05/0.3172, allocations: 39 kB / 462.7 MB, free: 6.066 MB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 2.414e-06/0.3172, allocations: 0 / 462.7 MB, free: 6.066 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.007359/0.3245, allocations: 3.153 MB / 465.8 MB, free: 2.875 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002625/0.3272, allocations: 2.238 MB / 468.1 MB, free: 0.4922 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002467/0.3296, allocations: 1.62 MB / 469.7 MB, free: 14.86 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.676e-05/0.3297, allocations: 33.7 kB / 469.7 MB, free: 14.82 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008554/0.3306, allocations: 1.049 MB / 470.8 MB, free: 13.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002562/0.3308, allocations: 246.1 kB / 471 MB, free: 13.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004654/0.3313, allocations: 319.3 kB / 471.3 MB, free: 13.21 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001523/0.3314, allocations: 313 kB / 471.6 MB, free: 12.9 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000866/0.3323, allocations: 0.5114 MB / 472.1 MB, free: 12.39 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001613/0.3339, allocations: 1.468 MB / 473.6 MB, free: 10.45 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002644/0.3366, allocations: 2.141 MB / 475.7 MB, free: 7.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.02e-05/0.3366, allocations: 12 kB / 475.7 MB, free: 7.828 MB / 382.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.00371/0.3403, allocations: 2.158 MB / 477.9 MB, free: 5.652 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.307e-05/0.3403, allocations: 20 kB / 477.9 MB, free: 5.633 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.502e-05/0.3404, allocations: 32 kB / 478 MB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005612/0.3409, allocations: 235.1 kB / 478.2 MB, free: 5.363 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001189/0.3421, allocations: 391.3 kB / 478.6 MB, free: 4.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001894/0.344, allocations: 1.749 MB / 480.3 MB, free: 3.109 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00134/0.3454, allocations: 135.7 kB / 480.4 MB, free: 2.977 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001445/0.3455, allocations: 108 kB / 480.5 MB, free: 2.871 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.0009391/0.3464, allocations: 0.5867 MB / 481.1 MB, free: 2.273 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002745/0.3467, allocations: 159 kB / 481.3 MB, free: 2.117 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002067/0.3488, allocations: 1.116 MB / 482.4 MB, free: 0.9844 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/0.3488, allocations: 8.234 kB / 482.4 MB, free: 0.9766 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.3488, allocations: 0 / 482.4 MB, free: 0.9766 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/0.3488, allocations: 7.969 kB / 482.4 MB, free: 0.9688 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005718/0.3545, allocations: 3.298 MB / 485.7 MB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.216e-06/0.3545, allocations: 4 kB / 485.7 MB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004258/0.355, allocations: 111.9 kB / 485.8 MB, free: 13.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006468/0.3556, allocations: 222.3 kB / 486.1 MB, free: 13.18 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.687e-05/0.3556, allocations: 19.98 kB / 486.1 MB, free: 13.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00425/0.3599, allocations: 3.851 MB / 489.9 MB, free: 9.078 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002201/0.3621, allocations: 2.078 MB / 492 MB, free: 6.867 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002741/0.3648, allocations: 1.75 MB / 493.7 MB, free: 5.027 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006643/0.3655, allocations: 238.8 kB / 494 MB, free: 4.793 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000176/0.3657, allocations: 20.06 kB / 494 MB, free: 4.773 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006565/0.3663, allocations: 51.94 kB / 494.1 MB, free: 4.723 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001332/0.3665, allocations: 63.88 kB / 494.1 MB, free: 4.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.116e-05/0.3665, allocations: 27.98 kB / 494.1 MB, free: 4.633 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001694/0.3682, allocations: 1.063 MB / 495.2 MB, free: 3.574 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3682, allocations: 4 kB / 495.2 MB, free: 3.57 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001595/0.3698, allocations: 380 kB / 495.6 MB, free: 3.199 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.003171/0.373, allocations: 2.376 MB / 498 MB, free: 0.7266 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002516/0.3755, allocations: 1.42 MB / 499.4 MB, free: 15.29 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/0.3755, allocations: 4 kB / 499.4 MB, free: 15.28 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001281/0.3768, allocations: 0.7527 MB / 0.4884 GB, free: 14.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001806/0.3786, allocations: 414.4 kB / 0.4888 GB, free: 14.11 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02288/0.4015, allocations: 15.29 MB / 0.5037 GB, free: 13.57 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001332/0.4028, allocations: 1.461 MB / 0.5052 GB, free: 12.09 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001049/0.4039, allocations: 354 kB / 0.5055 GB, free: 11.73 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000874/0.4047, allocations: 0.6243 MB / 0.5061 GB, free: 11.11 MB / 430.1 MB Notification: Performance of SimCode: time 1.643e-06/0.4047, allocations: 0 / 0.5061 GB, free: 11.11 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09231/0.497, allocations: 37.82 MB / 0.5431 GB, free: 5.641 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.64/16.14, allocations: 0 / 0.5431 GB, free: 5.641 MB / 462.1 MB " [Timeout remaining time 644] (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: 18.728712839001673]