Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001313/0.001313, allocations: 118.8 kB / 17.79 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001389/0.001389, allocations: 202 kB / 18.74 MB, free: 4.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001997/0.001997, allocations: 64.12 kB / 358.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2524/0.2545, allocations: 50.54 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01347/0.268, allocations: 10.95 MB / 419.7 MB, free: 6.516 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007896/0.2759, allocations: 3.672 MB / 423.4 MB, free: 2.828 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001913/0.2779, allocations: 67.69 kB / 423.5 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002418/0.2803, allocations: 0.8257 MB / 424.3 MB, free: 1.934 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002949/0.2833, allocations: 0.858 MB / 425.2 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001239/0.2845, allocations: 467.3 kB / 425.6 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003938/0.2885, allocations: 2.945 MB / 428.6 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003504/0.292, allocations: 2.739 MB / 431.3 MB, free: 10.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002283/0.2943, allocations: 1.374 MB / 432.7 MB, free: 9.473 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002554/0.2969, allocations: 1.759 MB / 434.4 MB, free: 7.707 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005876/0.2975, allocations: 379.9 kB / 434.8 MB, free: 7.336 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001015/0.2985, allocations: 479.8 kB / 435.3 MB, free: 6.867 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001129/0.2997, allocations: 1.071 MB / 436.3 MB, free: 5.793 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002026/0.3017, allocations: 1.668 MB / 438 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00585/0.3076, allocations: 4.916 MB / 442.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.3076, allocations: 0 / 442.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3076, allocations: 0 / 442.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001333/0.3078, allocations: 0 / 442.9 MB, free: 15.18 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.007615/0.3154, allocations: 3.481 MB / 446.4 MB, free: 11.63 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.3155, allocations: 8.031 kB / 446.4 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005523/0.316, allocations: 367 kB / 446.8 MB, free: 11.26 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009849/0.317, allocations: 362.8 kB / 447.1 MB, free: 10.9 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003479/0.3205, allocations: 1.836 MB / 449 MB, free: 9.012 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001824/0.3207, allocations: 201.1 kB / 449.2 MB, free: 8.812 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004666/0.3212, allocations: 244 kB / 449.4 MB, free: 8.574 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005693/0.3269, allocations: 3.283 MB / 452.7 MB, free: 5.211 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.186e-05/0.327, allocations: 7.953 kB / 452.7 MB, free: 5.203 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002429/0.3272, allocations: 108 kB / 452.8 MB, free: 5.098 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001436/0.3274, allocations: 120.9 kB / 452.9 MB, free: 4.977 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004953/0.3323, allocations: 2.752 MB / 455.7 MB, free: 2.211 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01707/0.3494, allocations: 10.4 MB / 466.1 MB, free: 7.449 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002038/0.3515, allocations: 1.374 MB / 467.4 MB, free: 6.008 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00128/0.3528, allocations: 0.7641 MB / 468.2 MB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000301/0.3531, allocations: 195.2 kB / 468.4 MB, free: 5.016 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.45e-05/0.3532, allocations: 47.55 kB / 468.4 MB, free: 4.961 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 2.795e-06/0.3532, allocations: 0 / 468.4 MB, free: 4.961 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01549/0.3687, allocations: 6.949 MB / 475.4 MB, free: 13.9 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.364e-05/0.3688, allocations: 64.41 kB / 475.4 MB, free: 13.82 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00284/0.3716, allocations: 1.798 MB / 477.2 MB, free: 12.03 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001599/0.3718, allocations: 45.7 kB / 477.3 MB, free: 11.98 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001095/0.3729, allocations: 1.302 MB / 478.6 MB, free: 10.66 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004551/0.3734, allocations: 452.1 kB / 479 MB, free: 10.22 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004788/0.3739, allocations: 295.5 kB / 479.3 MB, free: 9.922 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.374, allocations: 305.1 kB / 479.6 MB, free: 9.621 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001337/0.3753, allocations: 0.7769 MB / 480.4 MB, free: 8.844 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001689/0.377, allocations: 1.292 MB / 481.7 MB, free: 7.328 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003131/0.3802, allocations: 2.21 MB / 483.9 MB, free: 4.887 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.131e-05/0.3802, allocations: 4 kB / 483.9 MB, free: 4.883 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004518/0.3847, allocations: 2.491 MB / 486.4 MB, free: 2.371 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.77e-05/0.3848, allocations: 12 kB / 486.4 MB, free: 2.359 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.879e-05/0.3848, allocations: 19.94 kB / 486.4 MB, free: 2.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000666/0.3855, allocations: 239.2 kB / 486.7 MB, free: 2.094 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001581/0.3871, allocations: 423.5 kB / 487.1 MB, free: 1.68 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003123/0.3902, allocations: 3.234 MB / 490.3 MB, free: 14.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00159/0.3918, allocations: 131.8 kB / 490.4 MB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001518/0.392, allocations: 75.92 kB / 490.5 MB, free: 13.95 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001433/0.3935, allocations: 0.8135 MB / 491.3 MB, free: 13.12 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003885/0.3939, allocations: 194.8 kB / 491.5 MB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003567/0.3974, allocations: 2.046 MB / 493.6 MB, free: 10.87 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.469e-05/0.3975, allocations: 12 kB / 493.6 MB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/0.3975, allocations: 4 kB / 493.6 MB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.289e-05/0.3975, allocations: 3.984 kB / 493.6 MB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008283/0.4058, allocations: 4.745 MB / 498.3 MB, free: 6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.556e-06/0.4058, allocations: 8.031 kB / 498.3 MB, free: 5.992 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001163/0.407, allocations: 263.6 kB / 498.6 MB, free: 5.734 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005647/0.4076, allocations: 207.2 kB / 498.8 MB, free: 5.52 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.381e-05/0.4077, allocations: 24 kB / 498.8 MB, free: 5.496 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002958/0.4106, allocations: 3.219 MB / 0.4903 GB, free: 1.996 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.272e-06/0.4107, allocations: 7.938 kB / 0.4903 GB, free: 1.988 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00497/0.4156, allocations: 3.136 MB / 0.4933 GB, free: 14.8 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009564/0.4166, allocations: 439.9 kB / 0.4938 GB, free: 14.35 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000262/0.4169, allocations: 31.92 kB / 0.4938 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009536/0.4179, allocations: 91.88 kB / 0.4939 GB, free: 14.23 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001987/0.4181, allocations: 72.89 kB / 0.4939 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.728e-05/0.4182, allocations: 39.98 kB / 0.494 GB, free: 14.12 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001943/0.4201, allocations: 1.228 MB / 0.4952 GB, free: 12.9 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4201, allocations: 0 / 0.4952 GB, free: 12.9 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001598/0.4217, allocations: 483.9 kB / 0.4956 GB, free: 12.43 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 2 systems {(2,1,100.0%), (1,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.005483/0.4272, allocations: 3.787 MB / 0.4993 GB, free: 8.574 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003883/0.4311, allocations: 2.35 MB / 0.5016 GB, free: 6.156 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.335e-06/0.4312, allocations: 4 kB / 0.5016 GB, free: 6.152 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001999/0.4332, allocations: 1.339 MB / 0.503 GB, free: 4.742 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002422/0.4356, allocations: 0.4915 MB / 0.5034 GB, free: 4.262 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03033/0.466, allocations: 18.8 MB / 0.5218 GB, free: 0.7188 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001989/0.468, allocations: 2.01 MB / 0.5238 GB, free: 14.67 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001492/0.4695, allocations: 0.496 MB / 0.5242 GB, free: 14.17 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001481/0.471, allocations: 1.015 MB / 0.5252 GB, free: 13.16 MB / 462.1 MB Notification: Performance of SimCode: time 8.92e-07/0.471, allocations: 0 / 0.5252 GB, free: 13.16 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2719/0.7429, allocations: 46.07 MB / 0.5702 GB, free: 103.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.95/14.69, allocations: 14.19 kB / 0.5702 GB, free: 103.3 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches