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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 112.8 kB / 17.06 MB, free: 5.969 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00182/0.00182, allocations: 200 kB / 18.01 MB, free: 5.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.309/1.309, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001017/0.001017, allocations: 39.94 kB / 350.8 MB, free: 3.711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2472/0.2482, allocations: 49.43 MB / 400.2 MB, free: 8.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.01129/0.2596, allocations: 8.991 MB / 409.2 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006267/0.2659, allocations: 3.147 MB / 412.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001349/0.2673, allocations: 47.81 kB / 412.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002108/0.2694, allocations: 0.7098 MB / 413.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002901/0.2724, allocations: 0.7418 MB / 413.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001221/0.2736, allocations: 327.5 kB / 414.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00298/0.2766, allocations: 2.109 MB / 416.3 MB, free: 8.648 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00214/0.2788, allocations: 1.425 MB / 417.7 MB, free: 7.168 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001535/0.2803, allocations: 0.9226 MB / 418.7 MB, free: 6.242 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001902/0.2822, allocations: 1.121 MB / 419.8 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005282/0.2828, allocations: 232 kB / 420 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000892/0.2837, allocations: 315.8 kB / 420.3 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008528/0.2845, allocations: 0.6778 MB / 421 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001878/0.2864, allocations: 1.077 MB / 422.1 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003965/0.2904, allocations: 3.118 MB / 425.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.2904, allocations: 4 kB / 425.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2904, allocations: 0 / 425.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.998e-05/0.2906, allocations: 0 / 425.2 MB, free: 15.69 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.005659/0.2962, allocations: 2.318 MB / 427.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.2963, allocations: 8.031 kB / 427.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004411/0.2967, allocations: 228.3 kB / 427.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007388/0.2975, allocations: 247.5 kB / 428 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002536/0.3, allocations: 1.228 MB / 429.2 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001052/0.3001, allocations: 119.2 kB / 429.3 MB, free: 11.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000297/0.3005, allocations: 148 kB / 429.5 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003582/0.304, allocations: 2.004 MB / 431.5 MB, free: 9.223 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.052e-05/0.3041, allocations: 11.89 kB / 431.5 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000219/0.3043, allocations: 64 kB / 431.6 MB, free: 9.148 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001032/0.3045, allocations: 78.91 kB / 431.6 MB, free: 9.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003101/0.3076, allocations: 1.651 MB / 433.3 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01077/0.3184, allocations: 6.911 MB / 440.2 MB, free: 180 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008393/0.3192, allocations: 447.7 kB / 440.6 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003897/0.3196, allocations: 266 kB / 440.9 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002206/0.3199, allocations: 113.5 kB / 441 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.484e-05/0.3199, allocations: 43 kB / 441 MB, free: 15.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=47): time 2.715e-06/0.3199, allocations: 0 / 441 MB, free: 15.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.007365/0.3273, allocations: 3.311 MB / 444.4 MB, free: 11.9 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002554/0.3299, allocations: 2.33 MB / 446.7 MB, free: 9.402 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002511/0.3324, allocations: 1.62 MB / 448.3 MB, free: 7.773 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.507e-05/0.3325, allocations: 37.7 kB / 448.3 MB, free: 7.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007803/0.3333, allocations: 1.053 MB / 449.4 MB, free: 6.668 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002326/0.3335, allocations: 250 kB / 449.6 MB, free: 6.422 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004552/0.334, allocations: 323.3 kB / 449.9 MB, free: 6.102 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.3341, allocations: 305.1 kB / 450.2 MB, free: 5.801 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008297/0.3349, allocations: 0.527 MB / 450.8 MB, free: 5.273 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001451/0.3364, allocations: 1.461 MB / 452.2 MB, free: 3.348 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00239/0.3388, allocations: 2.141 MB / 454.4 MB, free: 0.7383 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.25e-05/0.3388, allocations: 8 kB / 454.4 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003668/0.3425, allocations: 2.17 MB / 456.6 MB, free: 14.54 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.601e-05/0.3426, allocations: 24.03 kB / 456.6 MB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.773e-05/0.3426, allocations: 32 kB / 456.6 MB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005657/0.3432, allocations: 230.5 kB / 456.8 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001172/0.3444, allocations: 395.2 kB / 457.2 MB, free: 13.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001752/0.3462, allocations: 1.847 MB / 459.1 MB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001461/0.3476, allocations: 135.7 kB / 459.2 MB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001524/0.3478, allocations: 95.98 kB / 459.3 MB, free: 11.65 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.0009922/0.3488, allocations: 0.5905 MB / 459.9 MB, free: 11.05 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004235/0.3492, allocations: 159 kB / 460 MB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002036/0.3513, allocations: 1.121 MB / 461.2 MB, free: 9.742 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.574e-06/0.3513, allocations: 8 kB / 461.2 MB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.3513, allocations: 0 / 461.2 MB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/0.3513, allocations: 3.984 kB / 461.2 MB, free: 9.73 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005938/0.3573, allocations: 3.386 MB / 464.6 MB, free: 6.199 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.619e-06/0.3573, allocations: 4 kB / 464.6 MB, free: 6.195 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004344/0.3577, allocations: 111.8 kB / 464.7 MB, free: 6.086 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006175/0.3584, allocations: 230.8 kB / 464.9 MB, free: 5.852 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.101e-05/0.3584, allocations: 20 kB / 464.9 MB, free: 5.832 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004182/0.3626, allocations: 4.046 MB / 469 MB, free: 1.492 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002136/0.3648, allocations: 2.181 MB / 471.1 MB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002642/0.3674, allocations: 1.752 MB / 472.9 MB, free: 13.32 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008107/0.3683, allocations: 319.9 kB / 473.2 MB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003718/0.3686, allocations: 16 kB / 473.2 MB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008841/0.3695, allocations: 51.94 kB / 473.3 MB, free: 12.92 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.3697, allocations: 63.86 kB / 473.3 MB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.324e-05/0.3697, allocations: 24 kB / 473.4 MB, free: 12.83 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001852/0.3716, allocations: 1.066 MB / 474.4 MB, free: 11.77 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3716, allocations: 0 / 474.4 MB, free: 11.77 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001951/0.3736, allocations: 391.9 kB / 474.8 MB, free: 11.39 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.003376/0.377, allocations: 2.371 MB / 477.2 MB, free: 8.918 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002732/0.3797, allocations: 1.613 MB / 478.8 MB, free: 7.254 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.3797, allocations: 0 / 478.8 MB, free: 7.254 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001367/0.3811, allocations: 0.8595 MB / 479.7 MB, free: 6.348 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002365/0.3835, allocations: 408.5 kB / 480.1 MB, free: 5.957 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02334/0.4069, allocations: 15.3 MB / 495.4 MB, free: 5.406 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001396/0.4083, allocations: 1.469 MB / 496.8 MB, free: 3.91 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001069/0.4094, allocations: 350 kB / 497.2 MB, free: 3.562 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009506/0.4104, allocations: 0.6203 MB / 497.8 MB, free: 2.941 MB / 414.1 MB Notification: Performance of SimCode: time 1.583e-06/0.4104, allocations: 7.938 kB / 497.8 MB, free: 2.934 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07611/0.4865, allocations: 36.28 MB / 0.5216 GB, free: 15.07 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.22/14.71, allocations: 13.53 kB / 0.5216 GB, free: 15.06 MB / 462.1 MB (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) 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) Reference file matches