Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",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.001265/0.001265, allocations: 113.4 kB / 17.06 MB, free: 5.992 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.001413/0.001413, allocations: 200 kB / 18.01 MB, free: 5.062 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.333/1.333, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001435/0.001435, allocations: 47.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.287/0.2885, allocations: 49.43 MB / 400.3 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01702/0.3056, allocations: 15.18 MB / 415.4 MB, free: 9.566 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01015/0.3158, allocations: 5.076 MB / 420.5 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004085/0.3199, allocations: 99.62 kB / 420.6 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003497/0.3234, allocations: 1.121 MB / 421.7 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004597/0.3281, allocations: 1.317 MB / 423.1 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002429/0.3305, allocations: 0.8841 MB / 423.9 MB, free: 1.043 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005002/0.3355, allocations: 3.624 MB / 427.6 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005136/0.3407, allocations: 3.306 MB / 430.9 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00283/0.3435, allocations: 1.729 MB / 432.6 MB, free: 8.289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00371/0.3473, allocations: 2.063 MB / 434.7 MB, free: 6.219 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001389/0.3487, allocations: 480 kB / 435.1 MB, free: 5.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002169/0.3509, allocations: 0.6794 MB / 435.8 MB, free: 5.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001625/0.3525, allocations: 1.141 MB / 436.9 MB, free: 3.926 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003728/0.3563, allocations: 2.042 MB / 439 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009079/0.3653, allocations: 6.287 MB / 445.3 MB, free: 11.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.3654, allocations: 4 kB / 445.3 MB, free: 11.56 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.258e-06/0.3654, allocations: 3.984 kB / 445.3 MB, free: 11.56 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002309/0.3656, allocations: 0 / 445.3 MB, free: 11.56 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01439/0.38, allocations: 4.331 MB / 449.6 MB, free: 7.148 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.444e-05/0.3801, allocations: 11.89 kB / 449.6 MB, free: 7.137 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001568/0.3817, allocations: 447.3 kB / 450.1 MB, free: 6.688 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003722/0.3854, allocations: 0.6349 MB / 450.7 MB, free: 6.051 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00589/0.3913, allocations: 2.297 MB / 453 MB, free: 3.699 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003097/0.3917, allocations: 238.7 kB / 453.2 MB, free: 3.465 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001064/0.3927, allocations: 315.9 kB / 453.5 MB, free: 3.156 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01075/0.4035, allocations: 4.043 MB / 457.6 MB, free: 15.05 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001308/0.4037, allocations: 7.938 kB / 457.6 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007304/0.4044, allocations: 128 kB / 457.7 MB, free: 14.92 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001824/0.4046, allocations: 150.2 kB / 457.9 MB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008247/0.4129, allocations: 3.386 MB / 461.2 MB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02407/0.437, allocations: 13.18 MB / 474.4 MB, free: 13.75 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004381/0.4414, allocations: 3.978 MB / 478.4 MB, free: 9.266 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001575/0.443, allocations: 0.9762 MB / 479.4 MB, free: 8.293 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004898/0.4479, allocations: 2.662 MB / 482 MB, free: 5.543 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.262e-05/0.448, allocations: 47.56 kB / 482.1 MB, free: 5.488 MB / 398.1 MB Notification: Performance of pre-optimization done (n=108): time 4.438e-06/0.448, allocations: 3.984 kB / 482.1 MB, free: 5.484 MB / 398.1 MB Notification: Performance of matching and sorting (n=142): time 0.01208/0.4601, allocations: 6.032 MB / 488.1 MB, free: 15.36 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.314e-05/0.4602, allocations: 68.72 kB / 488.2 MB, free: 15.28 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00383/0.464, allocations: 1.893 MB / 490.1 MB, free: 13.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000115/0.4641, allocations: 49.7 kB / 490.1 MB, free: 13.29 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001381/0.4655, allocations: 1.548 MB / 491.7 MB, free: 11.73 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005247/0.4661, allocations: 0.5113 MB / 492.2 MB, free: 11.21 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006243/0.4667, allocations: 331.4 kB / 492.5 MB, free: 10.88 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.4668, allocations: 305.1 kB / 492.8 MB, free: 10.58 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001317/0.4682, allocations: 0.7652 MB / 493.6 MB, free: 9.812 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001815/0.47, allocations: 1.375 MB / 495 MB, free: 8.172 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003439/0.4734, allocations: 2.312 MB / 497.3 MB, free: 5.594 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.056e-05/0.4735, allocations: 4 kB / 497.3 MB, free: 5.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004517/0.478, allocations: 2.486 MB / 499.8 MB, free: 3.086 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.749e-05/0.4781, allocations: 16 kB / 499.8 MB, free: 3.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.036e-05/0.4781, allocations: 20.56 kB / 499.8 MB, free: 3.051 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004289/0.4785, allocations: 122.5 kB / 499.9 MB, free: 2.922 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001752/0.4803, allocations: 479.2 kB / 0.4887 GB, free: 2.453 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001244/0.4816, allocations: 1.414 MB / 0.49 GB, free: 0.8984 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001742/0.4833, allocations: 116 kB / 0.4901 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001689/0.4835, allocations: 79.98 kB / 0.4902 GB, free: 0.707 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001997/0.4855, allocations: 0.9852 MB / 0.4912 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004937/0.486, allocations: 210.6 kB / 0.4914 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003564/0.4896, allocations: 1.965 MB / 0.4933 GB, free: 13.51 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.355e-05/0.4896, allocations: 20 kB / 0.4933 GB, free: 13.49 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.4896, allocations: 0 / 0.4933 GB, free: 13.49 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.329e-05/0.4896, allocations: 11.91 kB / 0.4933 GB, free: 13.48 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008995/0.4986, allocations: 4.983 MB / 0.4982 GB, free: 8.395 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.08e-05/0.4987, allocations: 0 / 0.4982 GB, free: 8.395 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001341/0.5, allocations: 315.8 kB / 0.4985 GB, free: 8.086 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003057/0.5003, allocations: 94.53 kB / 0.4986 GB, free: 7.984 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001015/0.5005, allocations: 27.98 kB / 0.4986 GB, free: 7.957 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00101/0.5015, allocations: 1.375 MB / 0.5 GB, free: 6.441 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.5015, allocations: 3.938 kB / 0.5 GB, free: 6.438 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004532/0.506, allocations: 3.095 MB / 0.503 GB, free: 3.285 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001384/0.5074, allocations: 467.6 kB / 0.5034 GB, free: 2.809 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005998/0.508, allocations: 24 kB / 0.5035 GB, free: 2.785 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001335/0.5094, allocations: 83.89 kB / 0.5035 GB, free: 2.703 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001958/0.5096, allocations: 97.14 kB / 0.5036 GB, free: 2.609 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.793e-05/0.5097, allocations: 39.98 kB / 0.5037 GB, free: 2.57 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002735/0.5124, allocations: 1.285 MB / 0.5049 GB, free: 1.262 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5125, allocations: 0 / 0.5049 GB, free: 1.262 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002355/0.5148, allocations: 0.5312 MB / 0.5054 GB, free: 0.7305 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (141): * Single equations (assignments): 138 * 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 {(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.005116/0.5199, allocations: 3.719 MB / 0.5091 GB, free: 12.95 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003686/0.5236, allocations: 2.208 MB / 0.5112 GB, free: 10.68 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.704e-06/0.5237, allocations: 8.125 kB / 0.5112 GB, free: 10.68 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001671/0.5253, allocations: 1.177 MB / 0.5124 GB, free: 9.445 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002838/0.5282, allocations: 0.5105 MB / 0.5129 GB, free: 8.941 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03472/0.5629, allocations: 20.06 MB / 0.5325 GB, free: 4.078 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003158/0.5661, allocations: 2.267 MB / 0.5347 GB, free: 1.777 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001757/0.5679, allocations: 0.5132 MB / 0.5352 GB, free: 1.262 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001827/0.5698, allocations: 1.183 MB / 0.5363 GB, free: 80 kB / 462.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5698, allocations: 0 / 0.5363 GB, free: 80 kB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3014/0.8711, allocations: 49.7 MB / 0.5849 GB, free: 93.29 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.34/14.21, allocations: 7.906 kB / 0.5849 GB, free: 93.29 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches